Skip to content

Commit

Permalink
Update nip98.ts examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Airtune committed Aug 8, 2023
1 parent 16c7ae2 commit 4978c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nip98.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4978c85

Please sign in to comment.