@nibssplc/cams-sdk-react 1.0.0-rc.79 → 1.0.0-rc.80
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.
- package/dist/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -520,10 +520,15 @@ function useCAMSMSALAuth(options) {
|
|
|
520
520
|
mfaConfig: mfaConfig,
|
|
521
521
|
userConfig: userConfig,
|
|
522
522
|
});
|
|
523
|
+
setAccessToken(response.accessToken);
|
|
524
|
+
setIdToken(response.idToken);
|
|
525
|
+
camsSdk.Logger.info("MSAL User Auth is Completed");
|
|
523
526
|
// Don't persist as authenticated until MFA is complete
|
|
524
|
-
if (
|
|
525
|
-
|
|
526
|
-
|
|
527
|
+
if (userConfig.isValid && userConfig.userInfo.email) {
|
|
528
|
+
camsSdk.Logger.info("MSAL User Auth is Completed...", {
|
|
529
|
+
storageKey: storageKey,
|
|
530
|
+
email: userConfig.userInfo.email,
|
|
531
|
+
});
|
|
527
532
|
localStorage.setItem(storageKey, JSON.stringify({
|
|
528
533
|
isAuthenticated: false,
|
|
529
534
|
requiresMFA: userConfig.userInfo.isMFAEnabled,
|