docs/jwks/remote/interfaces/RemoteJWKSet.md
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
A key resolver created by createRemoteJWKSet.
jwtVerify and the other consuming functions, all of which accept this directly.
āø RemoteJWKSet(protectedHeader?, token?): Promise<CryptoKey>
A key resolver created by createRemoteJWKSet.
| Parameter | Type |
|---|---|
protectedHeader? | JWSHeaderParameters |
token? | FlattenedJWSInput |
jwtVerify and the other consuming functions, all of which accept this directly.
⢠readonly coolingDown: boolean
Whether the cooldown window following the last successful fetch is still in effect.
⢠readonly fresh: boolean
Whether the currently cached JSON Web Key Set is within its RemoteJWKSetOptions.cacheMaxAge.
⢠jwks: () => JSONWebKeySet | undefined
Returns a structured clone of the cached JSON Web Key Set, or undefined before keys have been
fetched or seeded via jwksCache.
JSONWebKeySet | undefined
⢠reload: () => Promise<void>
Triggers a JSON Web Key Set fetch, bypassing the cooldown.
Promise<void>
⢠readonly reloading: boolean
Whether a JSON Web Key Set fetch is currently in flight.