Decode a JWT and check its times; optionally verify an HS256/384/512 signature
jwt_decodeDecode a JWT and check its times; optionally verify an HS256/384/512 signature. Decodes header and payload, converts exp/iat/nbf to ISO dates, reports whether the token is expired or not yet valid, and flags alg=none. If a shared secret is given, verifies HMAC signatures (HS256/384/512) in constant time. Secrets are not stored or logged. Price: $0.003 USDC per call via x402 (eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| secret | No | Optional HMAC secret to verify the signature | |
| secretEncoding | No | utf8 |