JWT in localStorage: why AI-generated login code is one XSS bug from account takeover (proofforge.live)
Where you store a login token decides how bad an XSS bug gets. AI-generated auth code very often does this: after login, save the JWT in localStorage and attach it to every request. It works, and it hands the token to…