@osovitny/anatoly 3.20.20 → 3.20.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1712,10 +1712,20 @@ class MSALRedirect {
1712
1712
  Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
1713
1713
  </file>
1714
1714
  */
1715
- let msalSettings = document.getElementById("msalSettings").getAttribute('data-msalsettings');
1716
- let MSALConfig = JSON.parse(msalSettings);
1717
- let MSALApiConfig = MSALConfig?.api;
1718
- let MSALB2CConfig = MSALConfig?.b2c;
1715
+ //App
1716
+ function getMsalSettings() {
1717
+ const json = sessionStorage.getItem(SessionStorageKeys.appMSALSettings);
1718
+ return json ? JSON.parse(json) : null;
1719
+ }
1720
+ function resetMsalSettings() {
1721
+ let msalSettings = getMsalSettings();
1722
+ MSALConfig = msalSettings;
1723
+ MSALApiConfig = MSALConfig?.api;
1724
+ MSALB2CConfig = MSALConfig?.b2c;
1725
+ }
1726
+ let MSALConfig;
1727
+ let MSALApiConfig;
1728
+ let MSALB2CConfig;
1719
1729
 
1720
1730
  /*
1721
1731
  <file>
@@ -11235,6 +11245,7 @@ class AppService extends ApiServiceBase {
11235
11245
  sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
11236
11246
  sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
11237
11247
  resetAppCoreSettings();
11248
+ resetMsalSettings();
11238
11249
  }
11239
11250
  }));
11240
11251
  }