Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.76 KB

JWTDecryptGetKey.md

File metadata and controls

24 lines (15 loc) · 1.76 KB

Interface: JWTDecryptGetKey()

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

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

Interface for JWT Decryption dynamic key resolution. No token components have been verified at the time of this function call.

Parameters

Parameter Type Description
protectedHeader CompactJWEHeaderParameters JWE or JWS Protected Header.
token FlattenedJWE The consumed JWE or JWS token.

Returns

Uint8Array | KeyLike | Promise<Uint8Array | KeyLike>