@nibssplc/cams-sdk-react 0.0.1-beta.73 → 0.0.1-beta.75
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
|
@@ -358,7 +358,7 @@ function useCAMSMSALAuth(options) {
|
|
|
358
358
|
})];
|
|
359
359
|
case 2:
|
|
360
360
|
response = _e.sent();
|
|
361
|
-
|
|
361
|
+
console.log("Login Token response:", {
|
|
362
362
|
accessToken: response.accessToken,
|
|
363
363
|
idToken: response.idToken,
|
|
364
364
|
});
|
|
@@ -389,7 +389,7 @@ function useCAMSMSALAuth(options) {
|
|
|
389
389
|
err_1 = _e.sent();
|
|
390
390
|
// Handle user cancellation gracefully
|
|
391
391
|
if (err_1.errorCode === "user_cancelled") {
|
|
392
|
-
camsSdk.Logger.
|
|
392
|
+
camsSdk.Logger.error("User cancelled login");
|
|
393
393
|
setError(null); // Don't treat cancellation as an error
|
|
394
394
|
return [2 /*return*/];
|
|
395
395
|
}
|
|
@@ -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);
|