Use local storage instead of session storage? #440
-
Is it possible to use local storage instead of session storage, i.e override the behavior in the following file We're currently migrating from ActiveLogin version 4 and IdentityServer4 to the latest version and in our current version we had to fork the ActiveLogin.Authentication.BankId.AspNetCore and configure the use of local storage instead of session storage. If I remember it correct this fix was needed for login from native anroid apps (react-native) using Azure AD B2C and BankID. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Max! Would that fit your needs? We won't change the default implementation from sessionStorage to localStorage, but you are free to override that if it fits your needs :) By default we don't want that info to be "long lived", but rather to be cleared when the "session" ends (user navigates away/closes browser. |
Beta Was this translation helpful? Give feedback.
Hi Max!
Good question. There have always been the opportunity to customize the script, without "forking" the whole library.
The script is "linked" from a separate view, and all views can be overridden, see the docs here:
https://github.com/ActiveLogin/ActiveLogin.Authentication/blob/main/docs/articles/bankid.md#customize-the-ui
Would that fit your needs?
We won't change the default implementation from sessionStorage to localStorage, but you are free to override that if it fits your needs :) By default we don't want that info to be "long lived", but rather to be cleared when the "session" ends (user navigates away/closes browser.