@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 CHANGED
@@ -1576,9 +1576,11 @@ var MFAOptions = function (_a) {
1576
1576
  var _f = React.useState(false), showSuccessAnimation = _f[0], setShowSuccessAnimation = _f[1];
1577
1577
  var _g = React.useState(null), authType = _g[0], setAuthType = _g[1];
1578
1578
  var context = useCAMSContext();
1579
- var _h = context.authMode === "MSAL" && "EmailOTP" in context
1579
+ var _h = context.authMode === "MSAL"
1580
1580
  ? context
1581
- : { completeMFA: null, logout: function () { return __awaiter$1(void 0, void 0, void 0, function () { return __generator$1(this, function (_a) {
1581
+ : { completeMFA: function (data) { return __awaiter$1(void 0, void 0, void 0, function () { return __generator$1(this, function (_a) {
1582
+ return [2 /*return*/, data];
1583
+ }); }); }, logout: function () { return __awaiter$1(void 0, void 0, void 0, function () { return __generator$1(this, function (_a) {
1582
1584
  return [2 /*return*/];
1583
1585
  }); }); } }, completeMFA = _h.completeMFA, logout = _h.logout;
1584
1586
  var authenticate = useWebAuthn().authenticate;