Cannot store token in session storage
See original GitHub issueI used your example as my starting point but I can’t store token in session storage. I read your source code and in oidc-helpers.js there is:
const defaultOidcConfig = {
userStore: new WebStorageStateStore(),
loadUserInfo: true
}
which is used for building oidc UserManager object.
new WebStorageStateStore()
is by default storing in localStorage (https://github.com/IdentityModel/oidc-client-js/blob/dev/src/WebStorageStateStore.js) and I can’t pass any parameters to it. Can you help me with this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Store Session Tokens in a Browser (and the impacts of ...
A common question when building a SPA is: where do I store my session tokens? I'll talk through the main options and the...
Read more >Do I have to store tokens in cookies or localstorage or session?
This answer is based on the stateless approach and therefore it doesn't talk about the traditional session management.
Read more >Questions on rigidity of token-based session storage ... - GitHub
Storage for token-based sessions comes up in the first place because of two persistence needs: Session retention across page refreshes; Session ...
Read more >Storing Auth0 tokens in session storage instead of local storage
Tokens stored in memory won't be available in new tabs, and if the session is set to non-persisting, silent auth won't log the...
Read more >Local Storage Versus Cookies: Which to Use to Securely ...
Web applications need to store tokens to help manage user sessions. Because the browser/server relationship is “stateless,” every request would ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, so this is how you would change the example app to use sessionStorage:
'userStore' does not exist in type 'VuexOidcClientSettings'.ts(2345)