@nibssplc/cams-sdk-react 0.0.1-beta.72 → 0.0.1-beta.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 +8 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -413,6 +413,12 @@ function useCAMSMSALAuth(options) {
|
|
|
413
413
|
idToken: idToken,
|
|
414
414
|
userProfile: mfaResponse,
|
|
415
415
|
}));
|
|
416
|
+
Logger.info("MFA completed successfully, storage updated", {
|
|
417
|
+
accessToken: accessToken,
|
|
418
|
+
idToken: idToken,
|
|
419
|
+
isAuthenticated: isAuthenticated,
|
|
420
|
+
requiresMFA: requiresMFA,
|
|
421
|
+
});
|
|
416
422
|
}
|
|
417
423
|
// Set requiresMFA to false after storage update
|
|
418
424
|
setRequiresMFA(false);
|
|
@@ -426,7 +432,7 @@ function useCAMSMSALAuth(options) {
|
|
|
426
432
|
case 4: return [2 /*return*/];
|
|
427
433
|
}
|
|
428
434
|
});
|
|
429
|
-
}); }, [mfaAuthenticator, accessToken, idToken, storageKey]);
|
|
435
|
+
}); }, [mfaAuthenticator, accessToken, idToken, storageKey, requiresMFA]);
|
|
430
436
|
var sendEmailOTP = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
431
437
|
return __generator(this, function (_a) {
|
|
432
438
|
switch (_a.label) {
|
|
@@ -1873,7 +1879,7 @@ var DefaultLoginPage = function () {
|
|
|
1873
1879
|
// variant="outline"
|
|
1874
1880
|
, {
|
|
1875
1881
|
// variant="outline"
|
|
1876
|
-
className: "w-full flex items-center justify-center cursor-pointer bg-[#506f4a] hover:bg-[#506f4a] rounded-lg border border-transparent px-5 py-
|
|
1882
|
+
className: "w-full flex items-center justify-center cursor-pointer bg-[#506f4a] hover:bg-[#506f4a] rounded-lg border border-transparent px-5 py-8 text-base font-medium transition-colors duration-250", onClick: handleLogin, disabled: isLoading, children: [jsxRuntimeExports.jsx("img", { src: MicrosoftLogo, alt: "Microsoft Logo", width: 35, height: 35 }), jsxRuntimeExports.jsx("span", { children: isLoading ? 'Logging in...' : "Sign in with Microsoft" })] }) }), jsxRuntimeExports.jsxs(CardFooter, { className: "flex items-center justify-center mt-6 space-x-2 text-gray-400 text-sm", children: [jsxRuntimeExports.jsx(ShieldCheck, { className: "w-4 h-4 text-[#506f4a] pulse-glow" }), jsxRuntimeExports.jsx("span", { children: "Powered By NIBSS" })] })] }) }) }, "landing") }));
|
|
1877
1883
|
};
|
|
1878
1884
|
|
|
1879
1885
|
var MFAEndpointUrlSchema = z$1.url("MFAEndpoint must be a valid URL");
|