@frontegg/redux-store 7.60.0-alpha.0 → 7.60.0-alpha.2

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.
@@ -48,31 +48,29 @@ export default ((store, api, sharedActions) => {
48
48
  step: LoginStep.breachedPassword,
49
49
  loading: false
50
50
  });
51
+ } else if (passwordRotationFlagEnabled && isResetPasswordRequired(user, store.root.appName)) {
52
+ actions.setLoginState({
53
+ step: LoginStep.passwordRotationExpired,
54
+ loading: false,
55
+ resetPasswordToken: user.resetPasswordToken,
56
+ userId: user.userId
57
+ });
51
58
  } else {
52
- if (passwordRotationFlagEnabled && isResetPasswordRequired(user, store.root.appName)) {
59
+ const shouldShowPasswordRotationPrompt = shouldShowPasswordRotationPromptFunc(user);
60
+ if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
53
61
  actions.setLoginState({
54
- step: LoginStep.passwordRotationExpired,
55
- loading: false,
56
- resetPasswordToken: user.resetPasswordToken,
57
- userId: user.userId
62
+ step: LoginStep.passwordRotationNotification,
63
+ loading: false
58
64
  });
59
65
  } else {
60
- const shouldShowPasswordRotationPrompt = shouldShowPasswordRotationPromptFunc(user);
61
- if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
66
+ const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
67
+ if (shouldShowPrompt) {
62
68
  actions.setLoginState({
63
- step: LoginStep.passwordRotationNotification,
69
+ step: LoginStep.promptPasskeys,
64
70
  loading: false
65
71
  });
66
72
  } else {
67
- const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
68
- if (shouldShowPrompt) {
69
- actions.setLoginState({
70
- step: LoginStep.promptPasskeys,
71
- loading: false
72
- });
73
- } else {
74
- await actions.afterAuthNavigation();
75
- }
73
+ await actions.afterAuthNavigation();
76
74
  }
77
75
  }
78
76
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.60.0-alpha.0
1
+ /** @license Frontegg v7.60.0-alpha.2
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.
@@ -55,31 +55,29 @@ var _default = (store, api, sharedActions) => {
55
55
  step: _interfaces.LoginStep.breachedPassword,
56
56
  loading: false
57
57
  });
58
+ } else if (passwordRotationFlagEnabled && (0, _helpers2.isResetPasswordRequired)(user, store.root.appName)) {
59
+ actions.setLoginState({
60
+ step: _interfaces.LoginStep.passwordRotationExpired,
61
+ loading: false,
62
+ resetPasswordToken: user.resetPasswordToken,
63
+ userId: user.userId
64
+ });
58
65
  } else {
59
- if (passwordRotationFlagEnabled && (0, _helpers2.isResetPasswordRequired)(user, store.root.appName)) {
66
+ const shouldShowPasswordRotationPrompt = (0, _helpers2.shouldShowPasswordRotationPromptFunc)(user);
67
+ if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
60
68
  actions.setLoginState({
61
- step: _interfaces.LoginStep.passwordRotationExpired,
62
- loading: false,
63
- resetPasswordToken: user.resetPasswordToken,
64
- userId: user.userId
69
+ step: _interfaces.LoginStep.passwordRotationNotification,
70
+ loading: false
65
71
  });
66
72
  } else {
67
- const shouldShowPasswordRotationPrompt = (0, _helpers2.shouldShowPasswordRotationPromptFunc)(user);
68
- if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
73
+ const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
74
+ if (shouldShowPrompt) {
69
75
  actions.setLoginState({
70
- step: _interfaces.LoginStep.passwordRotationNotification,
76
+ step: _interfaces.LoginStep.promptPasskeys,
71
77
  loading: false
72
78
  });
73
79
  } else {
74
- const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
75
- if (shouldShowPrompt) {
76
- actions.setLoginState({
77
- step: _interfaces.LoginStep.promptPasskeys,
78
- loading: false
79
- });
80
- } else {
81
- await actions.afterAuthNavigation();
82
- }
80
+ await actions.afterAuthNavigation();
83
81
  }
84
82
  }
85
83
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.60.0-alpha.0
1
+ /** @license Frontegg v7.60.0-alpha.2
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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.60.0-alpha.0",
3
+ "version": "7.60.0-alpha.2",
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
9
  "@frontegg/entitlements-javascript-commons": "1.1.2",
10
- "@frontegg/rest-api": "7.60.0-alpha.0",
10
+ "@frontegg/rest-api": "7.60.0-alpha.2",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",