@frontegg/js 6.145.0-alpha.0 → 6.145.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 v6.145.0-alpha.0
1
+ /** @license Frontegg v6.145.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 v6.145.0-alpha.0
1
+ /** @license Frontegg v6.145.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: '6.145.0-alpha.0'
8
+ cdnVersion: '6.145.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": "6.145.0-alpha.0",
3
+ "version": "6.145.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": "6.145.0-alpha.0"
9
+ "@frontegg/types": "6.145.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1371,7 +1371,7 @@ __webpack_require__.r(__webpack_exports__);
1371
1371
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1372
1372
  /* harmony export */ });
1373
1373
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1374
- cdnVersion: '6.145.0-alpha.0'
1374
+ cdnVersion: '6.145.0'
1375
1375
  });
1376
1376
 
1377
1377
  /***/ }),
@@ -7145,7 +7145,7 @@ function* login({
7145
7145
  });
7146
7146
  const [securityCenterLoginFlows] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['security-center-show-login-flows']);
7147
7147
  if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginFlow.Login) {
7148
- if (securityCenterLoginFlows && user.isBreachedPassword) {
7148
+ if (securityCenterLoginFlows && user.isBreachedPassword && !isAuthenticated) {
7149
7149
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setLoginState({
7150
7150
  step: _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginStep.breachedPassword,
7151
7151
  loading: false
@@ -7233,7 +7233,7 @@ function* loginWithMfa({
7233
7233
  }));
7234
7234
  const [securityCenterLoginFlows] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['security-center-show-login-flows']);
7235
7235
  if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginFlow.Login) {
7236
- if (securityCenterLoginFlows && loginState.isBreachedPassword) {
7236
+ if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
7237
7237
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setLoginState({
7238
7238
  step: _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginStep.breachedPassword,
7239
7239
  loading: false
@@ -7365,8 +7365,9 @@ function* handleVerifyMFAResponse({
7365
7365
  step: mfaStep
7366
7366
  } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth.mfaState);
7367
7367
  const [securityCenterLoginFlows] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['security-center-show-login-flows']);
7368
+ const isAuthenticated = !!user.accessToken;
7368
7369
  if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginFlow.Login) {
7369
- if (securityCenterLoginFlows && loginState.isBreachedPassword) {
7370
+ if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
7370
7371
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setLoginState({
7371
7372
  step: _interfaces__WEBPACK_IMPORTED_MODULE_12__.LoginStep.breachedPassword,
7372
7373
  loading: false
@@ -7384,7 +7385,7 @@ function* handleVerifyMFAResponse({
7384
7385
  }
7385
7386
  }
7386
7387
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setState({
7387
- isAuthenticated: !!user.accessToken
7388
+ isAuthenticated
7388
7389
  }));
7389
7390
  }
7390
7391
  function* preEnrollMFASMSForLogin(_ref13) {
@@ -23167,7 +23168,7 @@ __webpack_require__.r(__webpack_exports__);
23167
23168
  /* harmony export */ });
23168
23169
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
23169
23170
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
23170
- /** @license Frontegg v6.145.0-alpha.0
23171
+ /** @license Frontegg v6.145.0
23171
23172
  *
23172
23173
  * This source code is licensed under the MIT license found in the
23173
23174
  * LICENSE file in the root directory of this source tree.