Decode a JSON Web Token locally to inspect its header, payload and expiry. Decoding only, no signature verification.
A JSON Web Token has three Base64URL parts: header, payload and signature. The header and payload are just encoded JSON, so anyone holding a token can read them. That is why you should never put secrets in a JWT payload.
This decoder shows the header and payload and tells you whether the token has expired based on its exp claim. It decodes only. It does not verify the signature, so it cannot prove a token is genuine.
Check that the token carries the expected user ID and roles.
Confirm that a 401 error is simply an expired token.
You might also find these tools helpful.