JWTDecrypt
Last updated
Was this helpful?
Was this helpful?
// RSA-OAEP decryption
payload = jwtDecrypt( token, rsaPrivateKeyPem, {
keyAlgorithm: "RSA-OAEP-256",
encAlgorithm: "A256GCM"
} );
// Direct symmetric decryption
payload = jwtDecrypt( token, secret32bytes, {
keyAlgorithm: "dir",
encAlgorithm: "A256GCM"
} );