- Input
- Token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflK… (the jwt.io example)
- Working
- Segment 1 base64url-decodes to the header JSON: alg HS256, typ JWT. Segment 2 decodes to the payload: sub 1234567890, name John Doe, and iat 1516239022 — which the timestamp reading gives as 2018-01-18 01:30:22 UTC. There is no exp claim, so the status is 'no time claims', not 'valid'.
- Result
- Header {"alg":"HS256","typ":"JWT"} · Payload {"sub":"1234567890","name":"John Doe","iat":1516239022}