Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you confirm that you don’t recommend storing session tokens in localStorage / anything accessible by client-side JS? (It’s a commonly recommended bad practice these days)


Yes, we do not recommend storing tokens in localstorage. This is also recommended by other security bodies such as OWASP and NIST. We've written a blog post on this topic as well, that you can read here:

https://supertokens.io/blog/cookies-vs-localstorage-for-sess...


Great! Pleased to see this :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: