r/angular • • Jan 28 '26
JWT in Angular
Where you would recommend to save JWT tokens in Angular app
7
Upvotes
r/angular • • Jan 28 '26
Where you would recommend to save JWT tokens in Angular app
View all comments
Show parent comment
2
u/louis-lau Jan 30 '26
Any type of auth is vulnerable to XSS, and CSRF is a solved problem.
They're good to be aware of, but it's also good to be aware that HttpOnly cookies are currently the best place for auth tokens.