Glossary · SecurityAlso: JWT
What is a JWT?
A JWT (JSON Web Token) is a compact, URL-safe token that carries claims, such as a user ID and an expiry time, as JSON. It is usually signed, so the receiver can verify it was not altered, but it is not encrypted by default, so it should never hold secrets.
Source: IETF: RFC 7519
Why it matters
JWTs let services verify a request without a database lookup, which is useful between services and APIs.
They are hard to revoke before they expire, so for browser sessions short lifetimes or server-side sessions are often the safer choice.
Example
An API receives a request with a signed JWT, checks the signature and expiry, and trusts the user ID inside it.