Skip to content
Sharp

Authentication · interview question

How can you mitigate replay attacks when using JWTs in an e-commerce application?

Multiple choiceHardchapter-17-curatedpremiumauthenticationjson-web-tokens-jwt
Choose one answer
Answer and explanation

Correct answer

A. Include a nonce or timestamp in the claims.

Why

Including a nonce or timestamp in the JWT claims can help mitigate replay attacks by ensuring each token is unique or time-bound.

Test yourself on Authentication

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

Start free test
All Authentication questions →