You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and 3): If you are using tokens you may not have a session on your server as you are not using cookies.
That's a possible approach. Another alternative would be using localStorage. Take into account that the cookie is client-side, so there is no session stored at the server.
IMHO, there is no a definite answer here but it's basically a trade off between security (sessionStorage) and UX (localStorage, client-side usage of cookies).
Yeah.. I'd like to avoid sessions on the service if possible. Although I did consider an auth service that would hold only auth state, for the purpose of requesting a token.
I considered using window.localStorage but was a little concerned about security.
I guess cookies would be just as in-secure.
Using window.sessionStorage means the token will not survive a browser refresh.
What would be the advisable approach here
Request a new token on application startup, just in case there is already a session on the server for that user?
Store the token in a cookie?
non session browser storage could be sketchy since it lives beyond life of the browser, it could be stolen.
The text was updated successfully, but these errors were encountered: