What is JWT (JSON Web Token)?

A JWT is a compact signed token with three Base64URL parts: header, payload and signature.

A JWT carries claims such as who the user is (sub) and when the token expires (exp). The signature proves that the token was not changed, but only if you verify it with the right key.

Decoding a JWT shows its contents but does not prove it is genuine. Never trust a token with the algorithm set to none.

← All terms

↑ ↓ navigateEnter openEsc close