Support sessionStorage in auth.Strategies options #1626
mtskf
started this conversation in
Ideas & Feature Requests
Replies: 2 comments
-
Agreed. The requirements for auth on my project are such that Session Storage is preferable to Local Storage/Cookies. Plus I feel that it's good security practice in general to have this option. This feature has my support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Local storage was never meant to be used as secure storage; the token data in the localStorage can be easily extracted even after closing the app and reused. Thus, sessionStorage is preferable.
Describe the solution you'd like to see
It would be great if there's an "session" option in the auth.strategies options, which uses window.sessionStorage to store the JWT instead of window.localStorage.
Thanks so much for providing the awesome module, I really love it! 👍
I'd appreciate if you could support the feature! It would be really life saving. 😊
Beta Was this translation helpful? Give feedback.
All reactions