jwt_decode
Decode a JWT's header and payload (base64url + JSON, no crypto). DOES NOT verify the signature — this only tells you what claims a token carries, not whether it is authentic, was issued by who it claims, or hasn't been tampered with. Never treat a successful decode as validation. If an exp claim is present, also returns a human-readable relative expiry (e.g. "expires in 2 hours" or "expired 3 days ago").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The raw JWT string (header.payload.signature, or header.payload). |