@frontegg/js 7.41.0 → 7.42.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.41.0
1
+ /** @license Frontegg v7.42.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.41.0
1
+ /** @license Frontegg v7.42.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '7.41.0'
8
+ cdnVersion: '7.42.0'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "7.41.0",
3
+ "version": "7.42.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "7.41.0"
9
+ "@frontegg/types": "7.42.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1625,7 +1625,7 @@ __webpack_require__.r(__webpack_exports__);
1625
1625
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1626
1626
  /* harmony export */ });
1627
1627
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1628
- cdnVersion: '7.41.0'
1628
+ cdnVersion: '7.42.0'
1629
1629
  });
1630
1630
 
1631
1631
  /***/ }),
@@ -6661,8 +6661,8 @@ __webpack_require__.r(__webpack_exports__);
6661
6661
 
6662
6662
 
6663
6663
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, _sharedActions) => {
6664
- const getMfaRequiredState = async (user, retryConfig, shouldContinueWhenFailing = false) => {
6665
- var _user$mfaDevices, _user$mfaDevices$emai;
6664
+ const getMfaRequiredState = async (user, retryConfig, shouldContinueWhenFailing = false, emailFromSignup) => {
6665
+ var _user$mfaDevices, _user$mfaDevices$emai, _user$userEmail;
6666
6666
  let step = _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.loginWithTwoFactor;
6667
6667
  const mfaState = {
6668
6668
  step: _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_2__.MFAStep.verify,
@@ -6718,7 +6718,7 @@ __webpack_require__.r(__webpack_exports__);
6718
6718
  error: undefined,
6719
6719
  step,
6720
6720
  tenantsLoading: true,
6721
- email: user.userEmail,
6721
+ email: (_user$userEmail = user.userEmail) != null ? _user$userEmail : emailFromSignup,
6722
6722
  tenants: [],
6723
6723
  allowRememberMfaDevice: isAllowedToRemember,
6724
6724
  mfaDeviceExpiration,
@@ -13202,7 +13202,7 @@ const _excluded = ["events", "url"];
13202
13202
  (0,_helpers_gtm__WEBPACK_IMPORTED_MODULE_7__.reportGTMEvent)(_helpers_gtm__WEBPACK_IMPORTED_MODULE_7__.GTMEventAction.SIGNUP_COMPLETED, signUpCompletePayload);
13203
13203
  }
13204
13204
  if (!shouldActivate && user && (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
13205
- const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_8__.DEFAULT_RETRY_CONFIG, true);
13205
+ const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_8__.DEFAULT_RETRY_CONFIG, true, payload.email);
13206
13206
  actions.setAuthState(mfaRequiredState);
13207
13207
  onRedirectTo(routes.loginUrl);
13208
13208
  } else {
@@ -17937,7 +17937,7 @@ __webpack_require__.r(__webpack_exports__);
17937
17937
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
17938
17938
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
17939
17939
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
17940
- /** @license Frontegg v7.41.0
17940
+ /** @license Frontegg v7.42.0
17941
17941
  *
17942
17942
  * This source code is licensed under the MIT license found in the
17943
17943
  * LICENSE file in the root directory of this source tree.
@@ -27952,7 +27952,7 @@ __webpack_require__.r(__webpack_exports__);
27952
27952
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
27953
27953
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
27954
27954
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
27955
- /** @license Frontegg v7.41.0
27955
+ /** @license Frontegg v7.42.0
27956
27956
  *
27957
27957
  * This source code is licensed under the MIT license found in the
27958
27958
  * LICENSE file in the root directory of this source tree.
@@ -30582,7 +30582,7 @@ __webpack_require__.r(__webpack_exports__);
30582
30582
  /* harmony export */ });
30583
30583
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
30584
30584
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
30585
- /** @license Frontegg v7.41.0
30585
+ /** @license Frontegg v7.42.0
30586
30586
  *
30587
30587
  * This source code is licensed under the MIT license found in the
30588
30588
  * LICENSE file in the root directory of this source tree.