This question evaluates understanding of browser-based authentication with JWTs, covering token storage trade-offs, how tokens are sent with requests, refresh token/session renewal patterns, common security risks (XSS, CSRF), and differences from traditional server-side sessions.
Explain, at a high level, how authentication typically works in a browser-based web app when using JWTs.
Cover:
localStorage
, cookies) and trade-offs.