SpinTheMic
Pro

Interview practice question

Revoking JWTs after a breach

Backend Engineering · Auth and Security · Intermediate

An account was compromised, and the attacker has a valid JWT that expires in 24 hours. How do you revoke access, and how would you design better?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Long-lived JWTs are hard to revoke.
  • Short-term: denylist by jti or user token version.
  • Revoke refresh tokens.
  • Design: short access tokens (5-15 min).
  • Token version/claims check on sensitive actions.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics