Skip to content
Sharp

Authentication · interview question

In a stateless JWT authentication system, how can you effectively revoke a token?

Multiple choiceHardchapter-17-curatedpremiumauthenticationjwt-signatures
Choose one answer
Answer and explanation

Correct answer

B. By maintaining a blacklist of revoked tokens.

Why

Since JWTs are stateless, revoking a token requires maintaining a server-side blacklist of revoked tokens. This allows the server to check if a token has been revoked before accepting it.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →