DELAPARRA
Index
Color
NL
Category: Core glossary

JWT (JSON Web Token)

Explained by Updated

What is JWT (JSON Web Token)?

JWT (JSON Web Token): A compact, URL-safe token for securely transmitting information between parties. Commonly used for authentication and session management. Pronounced "jot". A JWT, or JSON Web Token, is a compact token containing a small JSON payload, such as a user ID and an expiry time, plus a signature. The server can verify the signature and trust the contents without a database lookup. It is pronounced "jot".

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about JWT (JSON Web Token)

How is JWT (JSON Web Token) used in practice?

JWTs are popular for APIs and single sign-on, because any service with the right key can validate them.

What should you keep in mind with JWT (JSON Web Token)?

They are often misused. The payload is only encoded, not encrypted, so never put sensitive data in it. A JWT cannot easily be revoked before it expires, so keep lifetimes short and use refresh tokens. Verify the signature and algorithm on every request, and store tokens carefully in the browser. For a classic web application with its own login, a regular session cookie is usually simpler and safer.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with J

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.