We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9a12c commit 598cfdcCopy full SHA for 598cfdc
packages/mgt/src/providers/MsalProvider.ts
@@ -341,7 +341,12 @@ export class MsalProvider extends IProvider {
341
msalConfig.auth.clientId = config.clientId;
342
msalConfig.cache = msalConfig.cache || {};
343
msalConfig.cache.cacheLocation = msalConfig.cache.cacheLocation || 'localStorage';
344
- msalConfig.cache.storeAuthStateInCookie = msalConfig.cache.storeAuthStateInCookie || true;
+ if (
345
+ typeof msalConfig.cache.storeAuthStateInCookie === 'undefined' ||
346
+ msalConfig.cache.storeAuthStateInCookie === null
347
+ ) {
348
+ msalConfig.cache.storeAuthStateInCookie = true;
349
+ }
350
351
if (config.authority) {
352
msalConfig.auth.authority = config.authority;
0 commit comments