How to Decode a JWT: Header, Payload, and Expiry
Knowing how to decode a JWT turns a mysterious 401 into a five-second diagnosis. A JSON Web Token looks like random text, but it's really two base64url-encoded JSON documents and a signature, joined by dots. Decode it and you can read exactly what your auth server put inside: who the token belongs to, when it was issued, and, most usefully, when it expires. This guide walks through the token structure, a worked example you can paste straight into the JWT Decoder, and the habits that make token debugging quick.