Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 2.26 KB

FlattenedVerifyGetKey.md

File metadata and controls

32 lines (19 loc) · 2.26 KB

Interface: FlattenedVerifyGetKey()

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 Flattened JWS Verification dynamic key resolution. No token components have been verified at the time of this function call.

See

createRemoteJWKSet to verify using a remote JSON Web Key Set.

FlattenedVerifyGetKey(protectedHeader, token): Uint8Array | KeyLike | JWK | Promise<Uint8Array | KeyLike | JWK>

Interface for Flattened JWS Verification dynamic key resolution. No token components have been verified at the time of this function call.

Parameters

Parameter Type Description
protectedHeader undefined | JWSHeaderParameters JWE or JWS Protected Header.
token FlattenedJWSInput The consumed JWE or JWS token.

Returns

Uint8Array | KeyLike | JWK | Promise<Uint8Array | KeyLike | JWK>

See

createRemoteJWKSet to verify using a remote JSON Web Key Set.