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.
The key resolution function returned by createRemoteJWKSet.
jwtVerify and the other consuming functions, all of which accept this directly.
āø RemoteJWKSet(protectedHeader?, token?): Promise<CryptoKey>
The key resolution function returned 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
The currently cached JSON Web Key Set, or undefined when none has been fetched or seeded via
jwksCache yet.
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.