docs(auth): document intentional session-style NIP-98 model

This commit is contained in:
2026-04-16 14:37:43 +05:45
committed by hodlbod
parent bac763c925
commit 0c75ac9ed5
5 changed files with 32 additions and 6 deletions
+2
View File
@@ -145,6 +145,8 @@ export async function makeAuth(): Promise<string | undefined> {
kind: 27235,
content: "",
created_at: Math.floor(now / 1000),
// Intentional session-style auth: sign the API base URL once, then reuse
// the header briefly to avoid prompting the signer on every request.
tags: [["u", API_URL]],
})