@nibssplc/cams-sdk-react 1.0.0-rc.75 → 1.0.0-rc.77
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 +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -495,7 +495,10 @@ function useCAMSMSALAuth(options) {
|
|
|
495
495
|
return [4 /*yield*/, authenticator.GetUserMFAConfig(mfaConfig)];
|
|
496
496
|
case 3:
|
|
497
497
|
userConfig = _b.sent();
|
|
498
|
-
Logger.debug("MFA Authenticator initialized:",
|
|
498
|
+
Logger.debug("CAMS MFA Authenticator initialized:", {
|
|
499
|
+
mfaConfig: mfaConfig,
|
|
500
|
+
userConfig: userConfig,
|
|
501
|
+
});
|
|
499
502
|
// Don't persist as authenticated until MFA is complete
|
|
500
503
|
if (typeof window !== "undefined" && userConfig.isValid) {
|
|
501
504
|
setAccessToken(response.accessToken);
|
|
@@ -1851,6 +1854,7 @@ var MFAGate = function (_a) {
|
|
|
1851
1854
|
var timer = setTimeout(function () {
|
|
1852
1855
|
var shouldRequireMFA = requiresMFA !== null && requiresMFA !== void 0 ? requiresMFA : ("requiresMFA" in context ? context.requiresMFA : false);
|
|
1853
1856
|
var accessToken = "accessToken" in context ? context.accessToken : "";
|
|
1857
|
+
console.log(shouldRequireMFA, "Auth State", authState, context);
|
|
1854
1858
|
if (shouldRequireMFA && accessToken) {
|
|
1855
1859
|
setAuthState("MFA_Required");
|
|
1856
1860
|
}
|