← Back to index
function compactDecrypt

Decrypts a Compact JWE.

Parameters

🔗
jwe: string | Uint8Array

Compact JWE.

🔗
key: KeyLike | Uint8Array

Private Key or Secret to decrypt the JWE with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jwe-alg.

🔗
options: DecryptOptions

JWE Decryption options.

Type Parameters

🔗
KeyLikeType extends KeyLike = KeyLike

Parameters

🔗
jwe: string | Uint8Array

Compact JWE.

🔗
getKey: CompactDecryptGetKey

Function resolving Private Key or Secret to decrypt the JWE with. See Algorithm Key Requirements | https://github.com/panva/jose/issues/210#jwe-alg.

🔗
options: DecryptOptions

JWE Decryption options.