Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pheew
· 8mo ago · 0 comments
I’m all for replacing as much 3rd party libs with stdlib but it’s hard to look past the storing of the jwt in localStorage. Please don’t do that people. It’s very easily extracted through xss attacks.
Comments
[–]
moi2388
8mo ago
A cookie is susceptible to both xss and CSRF. You ought to be protecting against xss anyway.