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.
Interface for Compact JWS Verification dynamic key resolution. No token components have been verified at the time of this function call.
createRemoteJWKSet to verify using a remote JSON Web Key Set.
▸ CompactVerifyGetKey(protectedHeader
, token
): Uint8Array
| KeyLike
| JWK
| Promise
<Uint8Array
| KeyLike
| JWK
>
Interface for Compact JWS Verification dynamic key resolution. No token components have been verified at the time of this function call.
Parameter | Type | Description |
---|---|---|
protectedHeader |
CompactJWSHeaderParameters |
JWE or JWS Protected Header. |
token |
FlattenedJWSInput |
The consumed JWE or JWS token. |
Uint8Array
| KeyLike
| JWK
| Promise
<Uint8Array
| KeyLike
| JWK
>
createRemoteJWKSet to verify using a remote JSON Web Key Set.