@nibssplc/cams-sdk-react 1.0.0-rc.86 → 1.0.0-rc.87

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
@@ -1858,6 +1858,7 @@ var MFAGate = function (_a) {
1858
1858
  var tokens = { accessToken: accessToken, idToken: idToken };
1859
1859
  onAuthSuccess === null || onAuthSuccess === void 0 ? void 0 : onAuthSuccess(tokens);
1860
1860
  if ("onAuthSuccess" in context) {
1861
+ context.isAuthenticated = true;
1861
1862
  (_a = context.onAuthSuccess) === null || _a === void 0 ? void 0 : _a.call(context, tokens);
1862
1863
  }
1863
1864
  }
@@ -1956,7 +1957,10 @@ var MFAGate = function (_a) {
1956
1957
  return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
1957
1958
  case "Unauthenticated":
1958
1959
  default:
1959
- return (jsxRuntime.jsx(DefaultLoginPage, { usePassKey: usePassKey, useADLogin: useADLogin, MFAEndpoints: ValidatedMFAEndpoints, PassKeysRegisterProps: PassKeysRegisterProps, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () { return setAuthState("Authenticated"); } }));
1960
+ return (jsxRuntime.jsx(DefaultLoginPage, { usePassKey: usePassKey, useADLogin: useADLogin, MFAEndpoints: ValidatedMFAEndpoints, PassKeysRegisterProps: PassKeysRegisterProps, CredentialsAuthEndpoint: CredentialsAuthEndpoint, onADLoginSuccess: function () {
1961
+ context.isAuthenticated = true;
1962
+ setAuthState("Authenticated");
1963
+ } }));
1960
1964
  }
1961
1965
  };
1962
1966