@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 CHANGED
@@ -516,7 +516,10 @@ function useCAMSMSALAuth(options) {
516
516
  return [4 /*yield*/, authenticator.GetUserMFAConfig(mfaConfig)];
517
517
  case 3:
518
518
  userConfig = _b.sent();
519
- camsSdk.Logger.debug("MFA Authenticator initialized:", userConfig);
519
+ camsSdk.Logger.debug("CAMS MFA Authenticator initialized:", {
520
+ mfaConfig: mfaConfig,
521
+ userConfig: userConfig,
522
+ });
520
523
  // Don't persist as authenticated until MFA is complete
521
524
  if (typeof window !== "undefined" && userConfig.isValid) {
522
525
  setAccessToken(response.accessToken);
@@ -1872,6 +1875,7 @@ var MFAGate = function (_a) {
1872
1875
  var timer = setTimeout(function () {
1873
1876
  var shouldRequireMFA = requiresMFA !== null && requiresMFA !== void 0 ? requiresMFA : ("requiresMFA" in context ? context.requiresMFA : false);
1874
1877
  var accessToken = "accessToken" in context ? context.accessToken : "";
1878
+ console.log(shouldRequireMFA, "Auth State", authState, context);
1875
1879
  if (shouldRequireMFA && accessToken) {
1876
1880
  setAuthState("MFA_Required");
1877
1881
  }