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.
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.