@nibssplc/cams-sdk-react 1.0.0-rc.72 → 1.0.0-rc.74

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
@@ -1807,13 +1807,14 @@ var MFAEndpointsSchema = z.object({
1807
1807
  AuthChallengeVerify: z.url("MFA AuthChallengeVerify must be a valid URL"),
1808
1808
  });
1809
1809
  var MFAGate = function (_a) {
1810
- var children = _a.children, _b = _a.fallback, fallback = _b === void 0 ? (jsxRuntime.jsx("div", { className: "h-screen flex items-center justify-center", children: jsxRuntime.jsx(LoadingSpinner, {}) })) : _b,
1810
+ var _b, _c, _d;
1811
+ var children = _a.children, _e = _a.fallback, fallback = _e === void 0 ? (jsxRuntime.jsx("div", { className: "h-screen flex items-center justify-center", children: jsxRuntime.jsx(LoadingSpinner, {}) })) : _e,
1811
1812
  // loginComponent: LoginComponent = DefaultLoginPage,
1812
- _c = _a.usePassKey,
1813
+ _f = _a.usePassKey,
1813
1814
  // loginComponent: LoginComponent = DefaultLoginPage,
1814
- usePassKey = _c === void 0 ? false : _c, _d = _a.useADLogin, useADLogin = _d === void 0 ? false : _d, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, PassKeysRegisterProps = _a.PassKeysRegisterProps, MFAEndpoints = _a.MFAEndpoints, requiresMFA = _a.requiresMFA, onAuthSuccess = _a.onAuthSuccess, onAuthError = _a.onAuthError;
1815
+ usePassKey = _f === void 0 ? false : _f, _g = _a.useADLogin, useADLogin = _g === void 0 ? false : _g, CredentialsAuthEndpoint = _a.CredentialsAuthEndpoint, PassKeysRegisterProps = _a.PassKeysRegisterProps, MFAEndpoints = _a.MFAEndpoints, requiresMFA = _a.requiresMFA, onAuthSuccess = _a.onAuthSuccess, onAuthError = _a.onAuthError;
1815
1816
  var context = useCAMSContext();
1816
- var _e = React.useState("Loading"), authState = _e[0], setAuthState = _e[1];
1817
+ var _h = React.useState("Loading"), authState = _h[0], setAuthState = _h[1];
1817
1818
  var validatedMFAEndpoints = React.useMemo(function () {
1818
1819
  var parsed = MFAEndpointsSchema.safeParse(MFAEndpoints);
1819
1820
  if (!parsed.success) {
@@ -1857,6 +1858,11 @@ var MFAGate = function (_a) {
1857
1858
  }
1858
1859
  });
1859
1860
  }); }, [context, onAuthError]);
1861
+ camsSdk.Logger.debug("User context:", {
1862
+ user: context.user,
1863
+ profile: (_b = context.user) === null || _b === void 0 ? void 0 : _b.profile,
1864
+ email: (_d = (_c = context.user) === null || _c === void 0 ? void 0 : _c.profile) === null || _d === void 0 ? void 0 : _d.email,
1865
+ });
1860
1866
  React.useEffect(function () {
1861
1867
  if (context.isLoading) {
1862
1868
  setAuthState("Loading");