@frontegg/redux-store 7.104.0-alpha.1 → 7.104.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.
@@ -129,7 +129,8 @@ export default ((store, api, sharedActions) => {
129
129
  error: undefined,
130
130
  userId: response.userId,
131
131
  token: response.token,
132
- step: ForgotPasswordStep.resetPasswordPage
132
+ step: ForgotPasswordStep.resetPasswordPage,
133
+ resetTokenValidationStatus: 'valid'
133
134
  });
134
135
  } catch (e) {
135
136
  setForgotPasswordState({
@@ -225,7 +226,7 @@ export default ((store, api, sharedActions) => {
225
226
  }
226
227
  };
227
228
  const validateResetPasswordToken = async payload => {
228
- if (payload.skipValidation) {
229
+ if (payload.skipValidation || store.auth.forgotPasswordState.resetTokenValidationStatus === 'valid') {
229
230
  var _payload$signal3;
230
231
  if (!((_payload$signal3 = payload.signal) != null && _payload$signal3.aborted)) {
231
232
  setForgotPasswordState({
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.104.0-alpha.1
1
+ /** @license Frontegg v7.104.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.
@@ -136,7 +136,8 @@ var _default = (store, api, sharedActions) => {
136
136
  error: undefined,
137
137
  userId: response.userId,
138
138
  token: response.token,
139
- step: _interfaces.ForgotPasswordStep.resetPasswordPage
139
+ step: _interfaces.ForgotPasswordStep.resetPasswordPage,
140
+ resetTokenValidationStatus: 'valid'
140
141
  });
141
142
  } catch (e) {
142
143
  setForgotPasswordState({
@@ -232,7 +233,7 @@ var _default = (store, api, sharedActions) => {
232
233
  }
233
234
  };
234
235
  const validateResetPasswordToken = async payload => {
235
- if (payload.skipValidation) {
236
+ if (payload.skipValidation || store.auth.forgotPasswordState.resetTokenValidationStatus === 'valid') {
236
237
  var _payload$signal3;
237
238
  if (!((_payload$signal3 = payload.signal) != null && _payload$signal3.aborted)) {
238
239
  setForgotPasswordState({
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.104.0-alpha.1
1
+ /** @license Frontegg v7.104.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.104.0-alpha.1",
3
+ "version": "7.104.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
9
  "@frontegg/entitlements-javascript-commons": "1.1.2",
10
- "@frontegg/rest-api": "7.104.0-alpha.1",
10
+ "@frontegg/rest-api": "7.104.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",