Glossary

JWT

JOT

A compact, signed token used to prove who a user is between a client and a server.

JWT (JSON Web Token), officially pronounced “jot,” is a compact token for passing identity and other claims between systems. It’s often used to keep users logged in.

How it works

A JWT has three parts separated by dots: header.payload.signature.

  • Header: which signing algorithm is used.
  • Payload: the data, like a user ID and expiry time.
  • Signature: proves the token hasn’t been changed.

The server signs the token once and verifies the signature on each request, without a database lookup.

Watch out

The payload is only encoded, not encrypted, so anyone can read it. Never put secrets in it, and keep expiry times short.

Related: OAuth, JSON.