@nibssplc/cams-sdk-react 1.0.0-rc.45 → 1.0.0-rc.46
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/hooks/useCAMSMSALAuth.d.ts +4 -1
- package/dist/index.cjs.js +15 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -542,7 +542,10 @@ function useCAMSMSALAuth(options) {
|
|
|
542
542
|
idToken: response.idToken,
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
|
-
onAuthSuccess === null || onAuthSuccess === void 0 ? void 0 : onAuthSuccess(
|
|
545
|
+
onAuthSuccess === null || onAuthSuccess === void 0 ? void 0 : onAuthSuccess({
|
|
546
|
+
accessToken: response.accessToken,
|
|
547
|
+
idToken: response.idToken,
|
|
548
|
+
});
|
|
546
549
|
return [3 /*break*/, 4];
|
|
547
550
|
case 3:
|
|
548
551
|
err_1 = _b.sent();
|
|
@@ -572,7 +575,17 @@ function useCAMSMSALAuth(options) {
|
|
|
572
575
|
case 4: return [2 /*return*/];
|
|
573
576
|
}
|
|
574
577
|
});
|
|
575
|
-
}); }, [
|
|
578
|
+
}); }, [
|
|
579
|
+
instance,
|
|
580
|
+
scopes,
|
|
581
|
+
prompt,
|
|
582
|
+
appCode,
|
|
583
|
+
MFAEndpoint,
|
|
584
|
+
onAuthSuccess,
|
|
585
|
+
onAuthError,
|
|
586
|
+
storageKey,
|
|
587
|
+
inProgress,
|
|
588
|
+
]);
|
|
576
589
|
var completeMFA = useCallback(function (data) { return __awaiter$1(_this, void 0, void 0, function () {
|
|
577
590
|
return __generator$1(this, function (_a) {
|
|
578
591
|
if (!mfaAuthenticator) {
|