JWT_DECODE
Decodes and optionally verifies a JWT token using the provided secret/key and algorithm. Returns an object containing the payload, header, and verification status.
Supports HMAC (HS256/HS384/HS512), RSA (RS256/RS384/RS512), and ECDSA (ES256/ES384/ES512) algorithms. Can validate standard JWT claims like exp, nbf, iss, aud, jti, sub, and custom required claims. Supports JWK (JSON Web Key) and JWKS (JSON Web Key Set) formats.
The options should be provided in the same manner as the options for the JWT.decode function (e.g., verify, jwks, verify_expiration, verify_not_before, leeway, iss/verify_iss, aud/verify_aud, sub/verify_sub, jti/verify_jti, required_claims). For example, to verify the iss claim: iss: "my-app", verify_iss: TRUE
Categories: Hashing/Signing
Syntax
Examples
Example 1
Input
Formula
Output
Example 2
Input
Formula
Output
Example 3
Input
Formula
Output
Example 4
Input
Formula
Output
Example 5
Input
Formula
Output