token revocation
Cancelling a token before it expires so it is refused from then on.
In more detail
Self-contained tokens such as JWTs are hard to revoke because services check them without asking anyone. Keeping lifetimes short and storing revoked token family IDs in a fast shared denylist, for example in Redis, closes the gap.
Related terms
- refresh token — A longer-lived credential a client uses to get a new short-lived access token without asking the user to log in again.
- JSON Web Token — A compact signed token made of three base64url parts separated by dots: a header, a payload of claims and a signature.
- Redis — A very fast in-memory data store used for shared caches, rate-limit counters, session data and pub/sub messaging.
Taught in
- JWT Verification: Asymmetric Keys & Refresh Rotation — Production Full-Stack Engineering