Skip to content

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

// in practice

An API receives a request with a signed JWT, checks the signature and expiry, and trusts the user ID inside it.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts