How to use LocalStorage with MSAL.js ?
According to this , there is a property, cacheLocation, I need to set to 'LocalStorage'.
Next, sessionStorage is used:
var clientApplication = new Msal.UserAgentApplication(applicationConfig.clientID, applicationConfig.authority, function (errorDesc, token, error, tokenType) {
});
clientApplication.cacheLocation = 'localStorage';
source
share