@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.cjs.js
CHANGED
|
@@ -433,6 +433,12 @@ function useCAMSMSALAuth(options) {
|
|
|
433
433
|
idToken: idToken,
|
|
434
434
|
userProfile: mfaResponse,
|
|
435
435
|
}));
|
|
436
|
+
camsSdk.Logger.info("MFA completed successfully, storage updated", {
|
|
437
|
+
accessToken: accessToken,
|
|
438
|
+
idToken: idToken,
|
|
439
|
+
isAuthenticated: isAuthenticated,
|
|
440
|
+
requiresMFA: requiresMFA,
|
|
441
|
+
});
|
|
436
442
|
}
|
|
437
443
|
// Set requiresMFA to false after storage update
|
|
438
444
|
setRequiresMFA(false);
|
|
@@ -446,7 +452,7 @@ function useCAMSMSALAuth(options) {
|
|
|
446
452
|
case 4: return [2 /*return*/];
|
|
447
453
|
}
|
|
448
454
|
});
|
|
449
|
-
}); }, [mfaAuthenticator, accessToken, idToken, storageKey]);
|
|
455
|
+
}); }, [mfaAuthenticator, accessToken, idToken, storageKey, requiresMFA]);
|
|
450
456
|
var sendEmailOTP = React.useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
451
457
|
return __generator(this, function (_a) {
|
|
452
458
|
switch (_a.label) {
|
|
@@ -1893,7 +1899,7 @@ var DefaultLoginPage = function () {
|
|
|
1893
1899
|
// variant="outline"
|
|
1894
1900
|
, {
|
|
1895
1901
|
// variant="outline"
|
|
1896
|
-
className: "w-full flex items-center justify-center cursor-pointer bg-[#506f4a] hover:bg-[#506f4a] rounded-lg border border-transparent px-5 py-
|
|
1902
|
+
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(lucideReact.ShieldCheck, { className: "w-4 h-4 text-[#506f4a] pulse-glow" }), jsxRuntimeExports.jsx("span", { children: "Powered By NIBSS" })] })] }) }) }, "landing") }));
|
|
1897
1903
|
};
|
|
1898
1904
|
|
|
1899
1905
|
var MFAEndpointUrlSchema = z.url("MFAEndpoint must be a valid URL");
|