Skip to content
Sharp

Authentication · interview question

How would you explain a potential risk of using a long-lived JWT without refresh tokens in an interview?

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

Correct answer

D. Increased chance of token misuse if compromised.

Why

A long-lived JWT increases the risk of misuse if it is compromised, as the attacker can use it until it expires. Implementing refresh tokens can mitigate this by allowing the user to re-authenticate periodically.

Test yourself on Authentication

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

Start free test
All Authentication questions →