jwt_decode
Decode and validate a JWT. Returns header, payload, algorithm, signature presence, and — when a secret is provided — whether an HMAC-SHA256/384/512 signature verifies. Also checks exp/nbf/iat timestamps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The JWT (three dot-separated base64url parts) | |
| secret | No | Shared secret to verify HS256/HS384/HS512 signatures |