Skip to content
Sharp

Authentication · interview question

Why is a 30-day access token usually a security risk?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationjwt
Choose one answer
Answer and explanation

Correct answer

D. A stolen token stays useful to an attacker for a much longer time

Why

If an access token is stolen, a long expiration gives the attacker a longer window to use it. Shorter lifetimes limit damage and improve incident response options.

Test yourself on Authentication

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

Start free test
All Authentication questions →