mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
Match the protected header of each resolver callback to the value supplied by its operation. Expose the members attached to local and remote JWKS resolvers through named callable interfaces. Allow `JWTHeaderParameters.b64` to be boolean. A false value is inert unless "b64" is listed in "crit", so signing and verification accept it. Signed-off-by: Filip Skokan <[email protected]>
1.6 KiB
1.6 KiB
Interface: LocalJWKSet()
💗 Help the project
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 createLocalJWKSet.
See
jwtVerify and the other consuming functions, all of which accept this directly.
â–¸ LocalJWKSet(protectedHeader?, token?): Promise<CryptoKey>
The key resolution function returned by createLocalJWKSet.
Parameters
| Parameter | Type |
|---|---|
protectedHeader? |
JWSHeaderParameters |
token? |
FlattenedJWSInput |
Returns
See
jwtVerify and the other consuming functions, all of which accept this directly.
Properties
jwks
• jwks: () => JSONWebKeySet
Returns a structured clone of the JSON Web Key Set this resolver was created with.