@frontegg/redux-store 7.125.0-alpha.0 → 7.125.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.
@@ -55,7 +55,8 @@ export default ((store, api, sharedActions) => {
55
55
  const sendPasswordRecoveryEmail = async () => {
56
56
  const {
57
57
  identifier,
58
- identifierType
58
+ identifierType,
59
+ recaptchaToken
59
60
  } = store.auth.forgotPasswordState;
60
61
  setForgotPasswordState({
61
62
  loading: true
@@ -63,7 +64,8 @@ export default ((store, api, sharedActions) => {
63
64
  try {
64
65
  await api.auth.resetPasswordViaEmail({
65
66
  identifier,
66
- identifierType
67
+ identifierType,
68
+ recaptchaToken
67
69
  });
68
70
  setForgotPasswordState({
69
71
  loading: false,
@@ -144,7 +146,8 @@ export default ((store, api, sharedActions) => {
144
146
  loading: true,
145
147
  error: undefined,
146
148
  identifier: payload.identifier,
147
- identifierType: payload.identifierType
149
+ identifierType: payload.identifierType,
150
+ recaptchaToken: payload.recaptchaToken
148
151
  });
149
152
  try {
150
153
  const strategies = await api.auth.getPasswordRecoveryStrategies();
@@ -21,6 +21,7 @@ export interface ForgotPasswordState {
21
21
  passwordConfig: Partial<TestConfig> | null;
22
22
  identifier: string;
23
23
  identifierType: EIdentifierType;
24
+ recaptchaToken?: string;
24
25
  loading: boolean;
25
26
  sessionId?: string;
26
27
  userId?: string;
@@ -38,6 +39,7 @@ export interface IResetPasswordPayload extends WithCallback<IResetPassword> {
38
39
  export interface IDeterminePasswordRecoveryStrategyPayload {
39
40
  identifier: string;
40
41
  identifierType: EIdentifierType;
42
+ recaptchaToken?: string;
41
43
  }
42
44
  export type IVerifyPasswordViaSmsPayload = {
43
45
  otcToken: string;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.125.0-alpha.0
1
+ /** @license Frontegg v7.125.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.
@@ -62,7 +62,8 @@ var _default = (store, api, sharedActions) => {
62
62
  const sendPasswordRecoveryEmail = async () => {
63
63
  const {
64
64
  identifier,
65
- identifierType
65
+ identifierType,
66
+ recaptchaToken
66
67
  } = store.auth.forgotPasswordState;
67
68
  setForgotPasswordState({
68
69
  loading: true
@@ -70,7 +71,8 @@ var _default = (store, api, sharedActions) => {
70
71
  try {
71
72
  await api.auth.resetPasswordViaEmail({
72
73
  identifier,
73
- identifierType
74
+ identifierType,
75
+ recaptchaToken
74
76
  });
75
77
  setForgotPasswordState({
76
78
  loading: false,
@@ -151,7 +153,8 @@ var _default = (store, api, sharedActions) => {
151
153
  loading: true,
152
154
  error: undefined,
153
155
  identifier: payload.identifier,
154
- identifierType: payload.identifierType
156
+ identifierType: payload.identifierType,
157
+ recaptchaToken: payload.recaptchaToken
155
158
  });
156
159
  try {
157
160
  const strategies = await api.auth.getPasswordRecoveryStrategies();
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.125.0-alpha.0
1
+ /** @license Frontegg v7.125.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.125.0-alpha.0",
3
+ "version": "7.125.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.125.0-alpha.0",
10
+ "@frontegg/rest-api": "7.125.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",