@nibssplc/cams-sdk-react 1.0.0-rc.101 → 1.0.0-rc.102
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 +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1555,9 +1555,11 @@ var MFAOptions = function (_a) {
|
|
|
1555
1555
|
var _f = useState(false), showSuccessAnimation = _f[0], setShowSuccessAnimation = _f[1];
|
|
1556
1556
|
var _g = useState(null), authType = _g[0], setAuthType = _g[1];
|
|
1557
1557
|
var context = useCAMSContext();
|
|
1558
|
-
var _h = context.authMode === "MSAL"
|
|
1558
|
+
var _h = context.authMode === "MSAL"
|
|
1559
1559
|
? context
|
|
1560
|
-
: { completeMFA:
|
|
1560
|
+
: { completeMFA: function (data) { return __awaiter$1(void 0, void 0, void 0, function () { return __generator$1(this, function (_a) {
|
|
1561
|
+
return [2 /*return*/, data];
|
|
1562
|
+
}); }); }, logout: function () { return __awaiter$1(void 0, void 0, void 0, function () { return __generator$1(this, function (_a) {
|
|
1561
1563
|
return [2 /*return*/];
|
|
1562
1564
|
}); }); } }, completeMFA = _h.completeMFA, logout = _h.logout;
|
|
1563
1565
|
var authenticate = useWebAuthn().authenticate;
|