Uploaded November 2026 | Updated November 2026, 20 hours ago
You clicked Log out, so why does the copied JWT still work? This is JWT logout explained: what signing out really does to a JWT access token, and how to design secure logout.
In a stateless JWT setup the API checks the signature and the claims, not whether you are still signed in. So signing out in the browser does not touch a token someone already copied.
What you'll learn:
- Why a logged-out JWT can still return 200 OK
- The three different things "logout" can mean
- Short-lived access tokens vs a server-side denylist (and what each one costs)
- Refresh tokens, rotation and replay detection, and why revoking the refresh token does not kill the access token
By the end you can answer one question for your own app: if someone copies the token and you log out, when exactly does it stop working?
Chapters
0:00 The logout that wasn't
0:37 What the server really checks
1:24 Three meanings of logout
2:04 Fix one: short-lived access tokens
2:45 Fix two: revocation needs shared state
3:45 Fix three: refresh tokens and rotation
5:06 What we would actually build
6:25 The uncomfortable trade-off
You clicked Log out, so why does the copied JWT still work? This is JWT logout explained: what signing out really does to a JWT access token, and how to design secure logout.
In a stateless JWT setup the API checks the signature and the claims, not whether you are still signed in. So signing out in the browser does not touch a token someone already copied.
What you'll learn:
- Why a logged-out JWT can still return 200 OK
- The three different things "logout" can mean
- Short-lived access tokens vs a server-side denylist (and what each one costs)
- Refresh tokens, rotation and replay detection, and why revoking the refresh token does not kill the access token
By the end you can answer one question for your own app: if someone copies the token and you log out, when exactly does it stop working?
Chapters
0:00 The logout that wasn't
0:37 What the server really checks
1:24 Three meanings of logout
2:04 Fix one: short-lived access tokens
2:45 Fix two: revocation needs shared state
3:45 Fix three: refresh tokens and rotation
5:06 What we would actually build
6:25 The uncomfortable trade-off










