-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
Noticed that localStorage is being used to store access and refresh tokens, and Local Storage can be vulnerable to XSS attacks. An alternative could be using http-only cookies.
See:
- https://codeburst.io/localstorage-vs-cookies-all-you-need-to-know-about-storing-jwt-tokens-securely-in-the-front-end-70dc0a9b3ad3
- https://www.ducktypelabs.com/is-localstorage-bad/
- https://pragmaticwebsecurity.com/articles/oauthoidc/localstorage-xss.html
Ofc, there are limitations (time + complexity) for deciding how the tokens can be stored. I mainly wanted to open up discussion on possible solutions and considerations.
ricardov03, TheKachi and 3raxton
Metadata
Metadata
Assignees
Labels
No labels