Start with Identity
← Glossary
Standard

JSON Web Token (JWT)

A compact, URL-safe token format with three base64-encoded segments: header, payload, and signature. Defined by RFC 7519. JWTs are the dominant format for ID tokens and bearer access tokens. Verify the signature; never trust unsigned JWTs.

JWTs are easy to produce and easy to verify wrongly, which is why they generate a steady stream of authentication bypasses: accepting alg: none, confusing HMAC and RSA verification, skipping the audience check, or trusting a kid that points at attacker-controlled key material. Use a maintained library, pin the expected algorithms, and validate issuer, audience, and expiry every time. A JWT is signed, not encrypted, so nothing secret belongs in the payload.

See also: claims, JWKS, access token, identity CVE catalog

Last reviewed By SWI Community TeamSuggest a correctionHow we research