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
What do you think about using sessionStorage instead of localStorage for storing the access tokens? That way they would be wiped in between browser restarts (like for SAML IdPs). As the user has approved the client access anyway all it would require is a redirect to get a new access token...
What are your thoughts?
The text was updated successfully, but these errors were encountered:
For my use cases it is important to be able to permanently store tokens.
I believe what can be done is to add support for storage handlers.
Also it would be a good idea to add support for a logout handler, allowing developers to initiate wiping the tokens, regardless of whether session storage or localstorage is used.
Hi, any updates on this - 9 years later? 😉 I am trying to get this library to work in a native mobile app built with React Native - and I fail because obviously there is no localStorage outside of the browser.
Is that generally a good idea, to use this library in a mobile app (not a PWA)?
I think the localStorage problem can be easily remedied by adding support for storage handlers (something akin to custom loaders support) and I would be happy to create a MR for this.
What do you think about using sessionStorage instead of localStorage for storing the access tokens? That way they would be wiped in between browser restarts (like for SAML IdPs). As the user has approved the client access anyway all it would require is a redirect to get a new access token...
What are your thoughts?
The text was updated successfully, but these errors were encountered: