function jwtDecrypt
Verifies the JWT format (to be a JWE Compact format), decrypts the ciphertext, validates the JWT Claims Set.
Type Parameters
🔗
PayloadType = JWTPayload
Parameters
🔗
key: KeyLike | Uint8Array
Private Key or Secret to decrypt and verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jwe-alg.
Return Type
🔗
Promise<JWTDecryptResult<PayloadType>>
Type Parameters
🔗
PayloadType = JWTPayload
🔗
KeyLikeType extends KeyLike = KeyLike
Parameters
🔗
getKey: JWTDecryptGetKey
Function resolving Private Key or Secret to decrypt and verify the JWT with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jwe-alg.
Return Type
🔗
Promise<JWTDecryptResult<PayloadType> & ResolvedKey<KeyLikeType>>