Skip to content
Sharp

Authentication · interview question

Which aspect of JWT usage can lead to vulnerabilities if not properly managed?

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

Correct answer

A. Token storage

Why

Improper token storage, such as storing JWTs in local storage, can lead to vulnerabilities. Tokens should be stored securely, preferably in HTTP-only cookies, to prevent access by JavaScript in case of XSS attacks.

Test yourself on Authentication

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

Start free test
All Authentication questions →