Backend Fundamentals · Who are you, and what may you do?
JSON Web Tokens (JWT)
A JWT is a signed note saying who you are and until when. Any server with the key can check it without a lookup, which is also why it cannot be taken back before it expires.
- Time25 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






Split three parts at the dots; base64url-decode the header and payload.
Algorithm reject anything that is not ES256, whatever the header claims.
Signature verify it over header and payload; any change fails here.
Claims
Backend-for-frontend tokens stay on a server; the browser holds a session cookie.
JavaScript memory only gone on reload; readable by injected script.
localStorage or sessionStorage readable by any script on the page.