Skip to content

Commit

Permalink
docs: update remote example
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Sep 30, 2024
1 parent 20acc7b commit 4a6dd82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/variables/jwks_remote.jwksCache.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ The intended use pattern is:
**`Example`**

```ts
import * as jose from 'jose'

// Prerequisites
let url!: URL
let jwt!: string
let getPreviouslyCachedJWKS!: () => Promise<jose.ExportedJWKSCache>
let storeNewJWKScache!: (cache: jose.ExportedJWKSCache) => Promise<void>

// Load JSON Web Key Set cache
const jwksCache: jose.JWKSCacheInput = (await getPreviouslyCachedJWKS()) || {}
Expand Down
4 changes: 2 additions & 2 deletions src/jwks/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozi
* @example
*
* ```ts
* import * as jose from 'jose'
*
* // Prerequisites
* let url!: URL
* let jwt!: string
* let getPreviouslyCachedJWKS!: () => Promise<jose.ExportedJWKSCache>
* let storeNewJWKScache!: (cache: jose.ExportedJWKSCache) => Promise<void>
*
* // Load JSON Web Key Set cache
* const jwksCache: jose.JWKSCacheInput = (await getPreviouslyCachedJWKS()) || {}
Expand Down

0 comments on commit 4a6dd82

Please sign in to comment.