From 4978c858e75748d46ba532a1512bcf01761fba8b Mon Sep 17 00:00:00 2001 From: Airtune <84182637+Airtune@users.noreply.github.com> Date: Tue, 8 Aug 2023 02:45:23 -0400 Subject: [PATCH] Update nip98.ts examples --- nip98.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nip98.ts b/nip98.ts index 05ac1646..b3138e8e 100644 --- a/nip98.ts +++ b/nip98.ts @@ -20,7 +20,7 @@ const _authorizationScheme = 'Nostr ' * * @example * const sign = window.nostr.signEvent - * await getToken('https://example.com/login', 'post', sign, true) + * await nip98.getToken('https://example.com/login', 'post', (e) => sign(e), true) */ export async function getToken( loginUrl: string, @@ -58,7 +58,7 @@ export async function getToken( * Validate token for NIP-98 flow. * * @example - * await validateToken('Nostr base64token', 'https://example.com/login', 'post') + * await nip98.validateToken('Nostr base64token', 'https://example.com/login', 'post') */ export async function validateToken( token: string,