@frontegg/redux-store 6.144.0-alpha.3 → 6.144.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.
Files changed (57) hide show
  1. package/auth/AcceptInvitationState/index.d.ts +0 -2
  2. package/auth/AccountSettingsState/index.d.ts +0 -2
  3. package/auth/ActivateState/index.d.ts +12 -3
  4. package/auth/ApiTokensState/index.d.ts +8 -2
  5. package/auth/CustomLoginState/index.d.ts +0 -2
  6. package/auth/ForgotPasswordState/index.d.ts +0 -2
  7. package/auth/GroupsState/groupsDialogsState.d.ts +0 -12
  8. package/auth/GroupsState/index.d.ts +0 -2
  9. package/auth/ImpersonationState/index.d.ts +0 -2
  10. package/auth/LoginState/index.d.ts +3 -5
  11. package/auth/LoginState/interfaces.d.ts +0 -3
  12. package/auth/LoginState/saga.js +22 -8
  13. package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +0 -14
  14. package/auth/MSP/AllAccountsState/index.d.ts +0 -3
  15. package/auth/MfaState/index.d.ts +0 -2
  16. package/auth/PasskeysState/index.d.ts +0 -2
  17. package/auth/ProfileState/index.d.ts +0 -2
  18. package/auth/Provisioning/index.d.ts +0 -2
  19. package/auth/ResetPhoneNumberState/index.d.ts +0 -2
  20. package/auth/ResetPhoneNumberState/saga.d.ts +2 -2
  21. package/auth/RolesState/index.d.ts +0 -2
  22. package/auth/SSOState/index.d.ts +0 -2
  23. package/auth/Security/RestrictionsState/index.d.ts +0 -15
  24. package/auth/Security/SecurityCenterState/index.d.ts +0 -2
  25. package/auth/Security/SecurityPolicyState/index.d.ts +0 -13
  26. package/auth/Security/SessionsPolicyState/index.d.ts +0 -2
  27. package/auth/SessionsState/index.d.ts +0 -2
  28. package/auth/SignUp/index.d.ts +0 -2
  29. package/auth/SocialLogins/index.d.ts +0 -2
  30. package/auth/TeamState/index.d.ts +0 -2
  31. package/auth/TenantsState/index.d.ts +0 -2
  32. package/auth/index.d.ts +1 -11
  33. package/auth/index.js +0 -2
  34. package/auth/initialState.js +1 -3
  35. package/auth/interfaces.d.ts +0 -2
  36. package/auth/reducer.d.ts +2 -11
  37. package/auth/reducer.js +2 -3
  38. package/auth/saga.js +1 -2
  39. package/auth/utils.d.ts +0 -6
  40. package/index.js +1 -1
  41. package/node/auth/LoginState/saga.js +22 -8
  42. package/node/auth/index.js +8 -32
  43. package/node/auth/initialState.js +1 -3
  44. package/node/auth/reducer.js +2 -3
  45. package/node/auth/saga.js +1 -2
  46. package/node/index.js +1 -1
  47. package/package.json +2 -2
  48. package/toolkit/index.d.ts +1 -1
  49. package/auth/SmsState/index.d.ts +0 -139
  50. package/auth/SmsState/index.js +0 -45
  51. package/auth/SmsState/interfaces.d.ts +0 -10
  52. package/auth/SmsState/interfaces.js +0 -1
  53. package/auth/SmsState/saga.d.ts +0 -30
  54. package/auth/SmsState/saga.js +0 -174
  55. package/node/auth/SmsState/index.js +0 -52
  56. package/node/auth/SmsState/interfaces.js +0 -5
  57. package/node/auth/SmsState/saga.js +0 -187
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
- smsState?: import("..").SmsState | undefined;
54
53
  routes: import("..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
- smsState?: import("..").SmsState | undefined;
101
99
  routes: import("..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -51,7 +51,6 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
- smsState?: import("..").SmsState | undefined;
55
54
  routes: import("..").AuthPageRoutes;
56
55
  header?: any;
57
56
  loaderComponent?: any;
@@ -98,7 +97,6 @@ declare const reducers: {
98
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
- smsState?: import("..").SmsState | undefined;
102
100
  routes: import("..").AuthPageRoutes;
103
101
  header?: any;
104
102
  loaderComponent?: any;
@@ -12,6 +12,10 @@ declare const reducers: {
12
12
  type: string;
13
13
  }) => {
14
14
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
15
+ /**
16
+ * if you see error in matcher that's mean the DispatchAction does not
17
+ * contains the same functions in reducers and actions
18
+ */
15
19
  error?: any;
16
20
  isAuthenticated: boolean;
17
21
  userIp?: string | undefined;
@@ -51,7 +55,6 @@ declare const reducers: {
51
55
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
56
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
57
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
- smsState?: import("..").SmsState | undefined;
55
58
  routes: import("..").AuthPageRoutes;
56
59
  header?: any;
57
60
  loaderComponent?: any;
@@ -59,6 +62,10 @@ declare const reducers: {
59
62
  };
60
63
  resetActivateState: (state: import("..").AuthState) => {
61
64
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
65
+ /**
66
+ * if you see error in matcher that's mean the DispatchAction does not
67
+ * contains the same functions in reducers and actions
68
+ */
62
69
  error?: any;
63
70
  isAuthenticated: boolean;
64
71
  userIp?: string | undefined;
@@ -98,7 +105,6 @@ declare const reducers: {
98
105
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
106
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
107
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
- smsState?: import("..").SmsState | undefined;
102
108
  routes: import("..").AuthPageRoutes;
103
109
  header?: any;
104
110
  loaderComponent?: any;
@@ -112,6 +118,10 @@ declare const reducers: {
112
118
  type: string;
113
119
  }) => {
114
120
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
121
+ /**
122
+ * if you see error in matcher that's mean the DispatchAction does not
123
+ * contains the same functions in reducers and actions
124
+ */
115
125
  error?: any;
116
126
  isAuthenticated: boolean;
117
127
  userIp?: string | undefined;
@@ -151,7 +161,6 @@ declare const reducers: {
151
161
  allAccountsState?: import("..").IAllAccountsState | undefined;
152
162
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
153
163
  securityCenterState?: import("..").SecurityCenterState | undefined;
154
- smsState?: import("..").SmsState | undefined;
155
164
  routes: import("..").AuthPageRoutes;
156
165
  header?: any;
157
166
  loaderComponent?: any;
@@ -49,6 +49,10 @@ declare const reducers: {
49
49
  teamState: import("..").TeamState;
50
50
  groupsState: import("..").GroupsState;
51
51
  groupsDialogsState: import("..").GroupsDialogsState;
52
+ /**
53
+ * if you see error in matcher that's mean the DispatchAction does not
54
+ * contains the same functions in reducers and actions
55
+ */
52
56
  socialLoginState: import("..").SocialLoginState;
53
57
  signUpState: import("..").SignUpState;
54
58
  apiTokensState: ApiTokensState;
@@ -68,7 +72,6 @@ declare const reducers: {
68
72
  allAccountsState?: import("..").IAllAccountsState | undefined;
69
73
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
70
74
  securityCenterState?: import("..").SecurityCenterState | undefined;
71
- smsState?: import("..").SmsState | undefined;
72
75
  routes: import("..").AuthPageRoutes;
73
76
  header?: any;
74
77
  loaderComponent?: any;
@@ -96,6 +99,10 @@ declare const reducers: {
96
99
  teamState: import("..").TeamState;
97
100
  groupsState: import("..").GroupsState;
98
101
  groupsDialogsState: import("..").GroupsDialogsState;
102
+ /**
103
+ * if you see error in matcher that's mean the DispatchAction does not
104
+ * contains the same functions in reducers and actions
105
+ */
99
106
  socialLoginState: import("..").SocialLoginState;
100
107
  signUpState: import("..").SignUpState;
101
108
  apiTokensState: ApiTokensState;
@@ -115,7 +122,6 @@ declare const reducers: {
115
122
  allAccountsState?: import("..").IAllAccountsState | undefined;
116
123
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
117
124
  securityCenterState?: import("..").SecurityCenterState | undefined;
118
- smsState?: import("..").SmsState | undefined;
119
125
  routes: import("..").AuthPageRoutes;
120
126
  header?: any;
121
127
  loaderComponent?: any;
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
- smsState?: import("..").SmsState | undefined;
54
53
  routes: import("..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
- smsState?: import("..").SmsState | undefined;
101
99
  routes: import("..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
- smsState?: import("..").SmsState | undefined;
54
53
  routes: import("..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
- smsState?: import("..").SmsState | undefined;
101
99
  routes: import("..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -49,7 +49,6 @@ declare const reducers: {
49
49
  allAccountsState?: import("..").IAllAccountsState | undefined;
50
50
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
51
51
  securityCenterState?: import("..").SecurityCenterState | undefined;
52
- smsState?: import("..").SmsState | undefined;
53
52
  routes: import("..").AuthPageRoutes;
54
53
  header?: any;
55
54
  loaderComponent?: any;
@@ -96,7 +95,6 @@ declare const reducers: {
96
95
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
96
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
97
  securityCenterState?: import("..").SecurityCenterState | undefined;
99
- smsState?: import("..").SmsState | undefined;
100
98
  routes: import("..").AuthPageRoutes;
101
99
  header?: any;
102
100
  loaderComponent?: any;
@@ -142,7 +140,6 @@ declare const reducers: {
142
140
  allAccountsState?: import("..").IAllAccountsState | undefined;
143
141
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
144
142
  securityCenterState?: import("..").SecurityCenterState | undefined;
145
- smsState?: import("..").SmsState | undefined;
146
143
  routes: import("..").AuthPageRoutes;
147
144
  header?: any;
148
145
  loaderComponent?: any;
@@ -188,7 +185,6 @@ declare const reducers: {
188
185
  allAccountsState?: import("..").IAllAccountsState | undefined;
189
186
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
190
187
  securityCenterState?: import("..").SecurityCenterState | undefined;
191
- smsState?: import("..").SmsState | undefined;
192
188
  routes: import("..").AuthPageRoutes;
193
189
  header?: any;
194
190
  loaderComponent?: any;
@@ -241,7 +237,6 @@ declare const reducers: {
241
237
  allAccountsState?: import("..").IAllAccountsState | undefined;
242
238
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
243
239
  securityCenterState?: import("..").SecurityCenterState | undefined;
244
- smsState?: import("..").SmsState | undefined;
245
240
  routes: import("..").AuthPageRoutes;
246
241
  header?: any;
247
242
  loaderComponent?: any;
@@ -288,7 +283,6 @@ declare const reducers: {
288
283
  allAccountsState?: import("..").IAllAccountsState | undefined;
289
284
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
290
285
  securityCenterState?: import("..").SecurityCenterState | undefined;
291
- smsState?: import("..").SmsState | undefined;
292
286
  routes: import("..").AuthPageRoutes;
293
287
  header?: any;
294
288
  loaderComponent?: any;
@@ -362,7 +356,6 @@ declare const reducers: {
362
356
  allAccountsState?: import("..").IAllAccountsState | undefined;
363
357
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
364
358
  securityCenterState?: import("..").SecurityCenterState | undefined;
365
- smsState?: import("..").SmsState | undefined;
366
359
  routes: import("..").AuthPageRoutes;
367
360
  header?: any;
368
361
  loaderComponent?: any;
@@ -409,7 +402,6 @@ declare const reducers: {
409
402
  allAccountsState?: import("..").IAllAccountsState | undefined;
410
403
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
411
404
  securityCenterState?: import("..").SecurityCenterState | undefined;
412
- smsState?: import("..").SmsState | undefined;
413
405
  routes: import("..").AuthPageRoutes;
414
406
  header?: any;
415
407
  loaderComponent?: any;
@@ -455,7 +447,6 @@ declare const reducers: {
455
447
  allAccountsState?: import("..").IAllAccountsState | undefined;
456
448
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
457
449
  securityCenterState?: import("..").SecurityCenterState | undefined;
458
- smsState?: import("..").SmsState | undefined;
459
450
  routes: import("..").AuthPageRoutes;
460
451
  header?: any;
461
452
  loaderComponent?: any;
@@ -501,7 +492,6 @@ declare const reducers: {
501
492
  allAccountsState?: import("..").IAllAccountsState | undefined;
502
493
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
503
494
  securityCenterState?: import("..").SecurityCenterState | undefined;
504
- smsState?: import("..").SmsState | undefined;
505
495
  routes: import("..").AuthPageRoutes;
506
496
  header?: any;
507
497
  loaderComponent?: any;
@@ -554,7 +544,6 @@ declare const reducers: {
554
544
  allAccountsState?: import("..").IAllAccountsState | undefined;
555
545
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
556
546
  securityCenterState?: import("..").SecurityCenterState | undefined;
557
- smsState?: import("..").SmsState | undefined;
558
547
  routes: import("..").AuthPageRoutes;
559
548
  header?: any;
560
549
  loaderComponent?: any;
@@ -601,7 +590,6 @@ declare const reducers: {
601
590
  allAccountsState?: import("..").IAllAccountsState | undefined;
602
591
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
603
592
  securityCenterState?: import("..").SecurityCenterState | undefined;
604
- smsState?: import("..").SmsState | undefined;
605
593
  routes: import("..").AuthPageRoutes;
606
594
  header?: any;
607
595
  loaderComponent?: any;
@@ -67,7 +67,6 @@ declare const reducers: {
67
67
  allAccountsState?: import("..").IAllAccountsState | undefined;
68
68
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
69
69
  securityCenterState?: import("..").SecurityCenterState | undefined;
70
- smsState?: import("..").SmsState | undefined;
71
70
  routes: import("..").AuthPageRoutes;
72
71
  header?: any;
73
72
  loaderComponent?: any;
@@ -114,7 +113,6 @@ declare const reducers: {
114
113
  allAccountsState?: import("..").IAllAccountsState | undefined;
115
114
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
116
115
  securityCenterState?: import("..").SecurityCenterState | undefined;
117
- smsState?: import("..").SmsState | undefined;
118
116
  routes: import("..").AuthPageRoutes;
119
117
  header?: any;
120
118
  loaderComponent?: any;
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
- smsState?: import("..").SmsState | undefined;
54
53
  routes: import("..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
- smsState?: import("..").SmsState | undefined;
101
99
  routes: import("..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -1,4 +1,4 @@
1
- import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, IEnrollMFAAuthenticatorApp, IEnrollMFASMS, IForgotPassword, ILogin, ILoginWithMfa, IPasswordlessPreLogin, IPostLogin, IPreEnrollMFA, IPreEnrollMFASMS, IPreLogin, IPreVerifyMFA, IVerifyChangePhoneNumber, IVerifyMFAEmailCode, IVerifyMFASMS, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
1
+ import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, IEmailPasswordlessPreLogin, IEnrollMFAAuthenticatorApp, IEnrollMFASMS, IForgotPassword, ILogin, ILoginWithMfa, IPostLogin, IPreEnrollMFA, IPreEnrollMFASMS, IPreLogin, IPreVerifyMFA, IVerifyChangePhoneNumber, IVerifyMFAEmailCode, IVerifyMFASMS, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
2
2
  import { FronteggNextJSSession, HostedLoginCallback, IEnrollMFAWebAuthnPayload, IPasswordlessPostLoginPayload, IPreEnrollMFAWebAuthNForLoginResponse, IPreVerifyMFAWebAuthNForLoginResponse, IQuickSmsPasswordlessPreLoginPayload, IRecoverMFATokenPayload, IVerifyMFAWebAuthnPayload, IVerifyNewWebAuthnDevicePayload, IWebAuthnPostLoginPayload, LoginState, WithDeviceId } from './interfaces';
3
3
  import { WithCallback } from '../../interfaces';
4
4
  import { IVerifyInviteToken } from '@frontegg/rest-api';
@@ -52,7 +52,6 @@ declare const reducers: {
52
52
  allAccountsState?: import("..").IAllAccountsState | undefined;
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
- smsState?: import("..").SmsState | undefined;
56
55
  routes: import("..").AuthPageRoutes;
57
56
  header?: any;
58
57
  loaderComponent?: any;
@@ -99,7 +98,6 @@ declare const reducers: {
99
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
100
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
101
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
- smsState?: import("..").SmsState | undefined;
103
101
  routes: import("..").AuthPageRoutes;
104
102
  header?: any;
105
103
  loaderComponent?: any;
@@ -145,7 +143,7 @@ declare const actions: {
145
143
  changePhoneNumberWithVerification: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IChangePhoneNumberWithVerification, boolean>], WithCallback<IChangePhoneNumberWithVerification, boolean>, string, never, never>;
146
144
  verifyChangePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IVerifyChangePhoneNumber, boolean>], WithCallback<IVerifyChangePhoneNumber, boolean>, string, never, never>;
147
145
  quickSmsPasswordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>], WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>, string, never, never>;
148
- passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPreLogin, void>], WithCallback<IPasswordlessPreLogin, void>, string, never, never>;
146
+ passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IEmailPasswordlessPreLogin, void>], WithCallback<IEmailPasswordlessPreLogin, void>, string, never, never>;
149
147
  passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPostLoginPayload, boolean>], WithCallback<IPasswordlessPostLoginPayload, boolean>, string, never, never>;
150
148
  verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IVerifyInviteToken], IVerifyInviteToken, string, never, never>;
151
149
  webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>], WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>, string, never, never>;
@@ -209,7 +207,7 @@ declare type DispatchedActions = {
209
207
  changePhoneNumberWithVerification: (payload: WithCallback<IChangePhoneNumberWithVerification>) => void;
210
208
  verifyChangePhoneNumber: (payload: WithCallback<IVerifyChangePhoneNumber>) => void;
211
209
  quickSmsPasswordlessPreLogin: (payload: WithCallback<IQuickSmsPasswordlessPreLoginPayload>) => void;
212
- passwordlessPreLogin: (payload: WithCallback<IPasswordlessPreLogin, void>) => void;
210
+ passwordlessPreLogin: (payload: WithCallback<IEmailPasswordlessPreLogin, void>) => void;
213
211
  passwordlessPostLogin: (payload: WithCallback<IPasswordlessPostLoginPayload>) => void;
214
212
  verifyInviteToken: (payload: IVerifyInviteToken) => void;
215
213
  webAuthnPrelogin: (payload: WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>) => void;
@@ -85,9 +85,6 @@ export interface IPreVerifyMFAWebAuthNForLoginResponse {
85
85
  export declare type WithDeviceId<T> = T & {
86
86
  deviceId: string;
87
87
  };
88
- export declare type WithPhoneId<T> = T & {
89
- phoneId: string;
90
- };
91
88
  export declare type IEnrollMFAWebAuthnPayload = WithCallback<Omit<IEnrollMFAWebAuthn, 'options'>> & {
92
89
  publicKey: Credential;
93
90
  };
@@ -34,6 +34,7 @@ import { dummyIps, userDemo } from '../dummy';
34
34
  import { SamlVendors } from '../SSOState/interfaces';
35
35
  import { loadVendorPublicInfo } from '../../vendor/saga';
36
36
  import { createRandomString, generateCodeChallenge, getFeatureFlags } from '../../helpers';
37
+ import { ResetPhoneNumberStep } from '../ResetPhoneNumberState/interfaces';
37
38
  import { base64urlDecode, delay, publicKeyCredentialToJSON } from '../utils';
38
39
  import { loadPublicAuthStrategiesPolicy } from '../Security/SecurityPolicyState/saga';
39
40
  import { getPasskeysVendorPolicy } from '../PasskeysState/helpers';
@@ -746,9 +747,6 @@ function* quickSmsPasswordlessPreLogin(_ref6) {
746
747
  callback == null ? void 0 : callback(e);
747
748
  }
748
749
  }
749
- function isEmailPayload(payload) {
750
- return 'email' in payload;
751
- }
752
750
  function* passwordlessPreLogin(_ref7) {
753
751
  let {
754
752
  payload: {
@@ -757,23 +755,39 @@ function* passwordlessPreLogin(_ref7) {
757
755
  } = _ref7,
758
756
  payload = _objectWithoutPropertiesLoose(_ref7.payload, _excluded4);
759
757
  try {
758
+ const {
759
+ onRedirectTo,
760
+ routes
761
+ } = yield select(({
762
+ auth: {
763
+ onRedirectTo,
764
+ routes
765
+ }
766
+ }) => ({
767
+ onRedirectTo,
768
+ routes
769
+ }));
760
770
  yield put(actions.setLoginState({
761
771
  loading: true
762
772
  }));
763
- let email;
764
- if (isEmailPayload(payload)) {
765
- email = payload.email;
766
- }
767
773
 
768
774
  // TODO: [Typescript 4.8] fix @frontegg/rest-api return value
769
775
  // @ts-ignore
770
776
  const preloginRes = yield call(api.auth.passwordlessPreLogin, payload);
771
777
  const step = authStrategyLoginStepMap[payload.type];
778
+ if (step === LoginStep.loginWithSmsOtc && preloginRes.resetPhoneNumberToken) {
779
+ yield put(actions.setResetPhoneNumberState({
780
+ resetPhoneNumberToken: preloginRes.resetPhoneNumberToken,
781
+ step: ResetPhoneNumberStep.VerifyResetPhoneNumber
782
+ }));
783
+ onRedirectTo(routes.resetPhoneNumberUrl);
784
+ return;
785
+ }
772
786
  yield put(actions.setLoginState({
773
787
  step,
774
788
  loading: false,
775
789
  phoneNumber: preloginRes == null ? void 0 : preloginRes.phoneNumber,
776
- email,
790
+ email: payload.email,
777
791
  error: undefined
778
792
  }));
779
793
  callback == null ? void 0 : callback();
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("./types").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("../..").SecurityCenterState | undefined;
53
- smsState?: import("../..").SmsState | undefined;
54
53
  routes: import("../..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("./types").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("../..").SecurityCenterState | undefined;
100
- smsState?: import("../..").SmsState | undefined;
101
99
  routes: import("../..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -162,7 +160,6 @@ declare const reducers: {
162
160
  allAccountsState?: import("./types").IAllAccountsState | undefined;
163
161
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
164
162
  securityCenterState?: import("../..").SecurityCenterState | undefined;
165
- smsState?: import("../..").SmsState | undefined;
166
163
  routes: import("../..").AuthPageRoutes;
167
164
  header?: any;
168
165
  loaderComponent?: any;
@@ -209,7 +206,6 @@ declare const reducers: {
209
206
  allAccountsState?: import("./types").IAllAccountsState | undefined;
210
207
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
211
208
  securityCenterState?: import("../..").SecurityCenterState | undefined;
212
- smsState?: import("../..").SmsState | undefined;
213
209
  routes: import("../..").AuthPageRoutes;
214
210
  header?: any;
215
211
  loaderComponent?: any;
@@ -262,7 +258,6 @@ declare const reducers: {
262
258
  allAccountsState?: import("./types").IAllAccountsState | undefined;
263
259
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
264
260
  securityCenterState?: import("../..").SecurityCenterState | undefined;
265
- smsState?: import("../..").SmsState | undefined;
266
261
  routes: import("../..").AuthPageRoutes;
267
262
  header?: any;
268
263
  loaderComponent?: any;
@@ -309,7 +304,6 @@ declare const reducers: {
309
304
  allAccountsState?: import("./types").IAllAccountsState | undefined;
310
305
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
311
306
  securityCenterState?: import("../..").SecurityCenterState | undefined;
312
- smsState?: import("../..").SmsState | undefined;
313
307
  routes: import("../..").AuthPageRoutes;
314
308
  header?: any;
315
309
  loaderComponent?: any;
@@ -374,7 +368,6 @@ declare const reducers: {
374
368
  allAccountsState?: import("./types").IAllAccountsState | undefined;
375
369
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
376
370
  securityCenterState?: import("../..").SecurityCenterState | undefined;
377
- smsState?: import("../..").SmsState | undefined;
378
371
  routes: import("../..").AuthPageRoutes;
379
372
  header?: any;
380
373
  loaderComponent?: any;
@@ -421,7 +414,6 @@ declare const reducers: {
421
414
  allAccountsState?: import("./types").IAllAccountsState | undefined;
422
415
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
423
416
  securityCenterState?: import("../..").SecurityCenterState | undefined;
424
- smsState?: import("../..").SmsState | undefined;
425
417
  routes: import("../..").AuthPageRoutes;
426
418
  header?: any;
427
419
  loaderComponent?: any;
@@ -486,7 +478,6 @@ declare const reducers: {
486
478
  allAccountsState?: import("./types").IAllAccountsState | undefined;
487
479
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
488
480
  securityCenterState?: import("../..").SecurityCenterState | undefined;
489
- smsState?: import("../..").SmsState | undefined;
490
481
  routes: import("../..").AuthPageRoutes;
491
482
  header?: any;
492
483
  loaderComponent?: any;
@@ -533,7 +524,6 @@ declare const reducers: {
533
524
  allAccountsState?: import("./types").IAllAccountsState | undefined;
534
525
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
535
526
  securityCenterState?: import("../..").SecurityCenterState | undefined;
536
- smsState?: import("../..").SmsState | undefined;
537
527
  routes: import("../..").AuthPageRoutes;
538
528
  header?: any;
539
529
  loaderComponent?: any;
@@ -604,7 +594,6 @@ declare const reducers: {
604
594
  allAccountsState?: import("./types").IAllAccountsState | undefined;
605
595
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
606
596
  securityCenterState?: import("../..").SecurityCenterState | undefined;
607
- smsState?: import("../..").SmsState | undefined;
608
597
  routes: import("../..").AuthPageRoutes;
609
598
  header?: any;
610
599
  loaderComponent?: any;
@@ -651,7 +640,6 @@ declare const reducers: {
651
640
  allAccountsState?: import("./types").IAllAccountsState | undefined;
652
641
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
653
642
  securityCenterState?: import("../..").SecurityCenterState | undefined;
654
- smsState?: import("../..").SmsState | undefined;
655
643
  routes: import("../..").AuthPageRoutes;
656
644
  header?: any;
657
645
  loaderComponent?: any;
@@ -704,7 +692,6 @@ declare const reducers: {
704
692
  allAccountsState?: import("./types").IAllAccountsState | undefined;
705
693
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
706
694
  securityCenterState?: import("../..").SecurityCenterState | undefined;
707
- smsState?: import("../..").SmsState | undefined;
708
695
  routes: import("../..").AuthPageRoutes;
709
696
  header?: any;
710
697
  loaderComponent?: any;
@@ -751,7 +738,6 @@ declare const reducers: {
751
738
  allAccountsState?: import("./types").IAllAccountsState | undefined;
752
739
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
753
740
  securityCenterState?: import("../..").SecurityCenterState | undefined;
754
- smsState?: import("../..").SmsState | undefined;
755
741
  routes: import("../..").AuthPageRoutes;
756
742
  header?: any;
757
743
  loaderComponent?: any;
@@ -69,7 +69,6 @@ declare const reducers: {
69
69
  allAccountsState?: IAllAccountsState | undefined;
70
70
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
71
71
  securityCenterState?: import("../..").SecurityCenterState | undefined;
72
- smsState?: import("../..").SmsState | undefined;
73
72
  routes: import("../..").AuthPageRoutes;
74
73
  header?: any;
75
74
  loaderComponent?: any;
@@ -123,7 +122,6 @@ declare const reducers: {
123
122
  allAccountsState?: IAllAccountsState | undefined;
124
123
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
125
124
  securityCenterState?: import("../..").SecurityCenterState | undefined;
126
- smsState?: import("../..").SmsState | undefined;
127
125
  routes: import("../..").AuthPageRoutes;
128
126
  header?: any;
129
127
  loaderComponent?: any;
@@ -170,7 +168,6 @@ declare const reducers: {
170
168
  allAccountsState?: IAllAccountsState | undefined;
171
169
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
172
170
  securityCenterState?: import("../..").SecurityCenterState | undefined;
173
- smsState?: import("../..").SmsState | undefined;
174
171
  routes: import("../..").AuthPageRoutes;
175
172
  header?: any;
176
173
  loaderComponent?: any;
@@ -52,7 +52,6 @@ declare const reducers: {
52
52
  allAccountsState?: import("..").IAllAccountsState | undefined;
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
- smsState?: import("..").SmsState | undefined;
56
55
  routes: import("..").AuthPageRoutes;
57
56
  header?: any;
58
57
  loaderComponent?: any;
@@ -99,7 +98,6 @@ declare const reducers: {
99
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
100
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
101
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
- smsState?: import("..").SmsState | undefined;
103
101
  routes: import("..").AuthPageRoutes;
104
102
  header?: any;
105
103
  loaderComponent?: any;
@@ -50,7 +50,6 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
- smsState?: import("..").SmsState | undefined;
54
53
  routes: import("..").AuthPageRoutes;
55
54
  header?: any;
56
55
  loaderComponent?: any;
@@ -97,7 +96,6 @@ declare const reducers: {
97
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
- smsState?: import("..").SmsState | undefined;
101
99
  routes: import("..").AuthPageRoutes;
102
100
  header?: any;
103
101
  loaderComponent?: any;
@@ -51,7 +51,6 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
- smsState?: import("..").SmsState | undefined;
55
54
  routes: import("..").AuthPageRoutes;
56
55
  header?: any;
57
56
  loaderComponent?: any;
@@ -98,7 +97,6 @@ declare const reducers: {
98
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
- smsState?: import("..").SmsState | undefined;
102
100
  routes: import("..").AuthPageRoutes;
103
101
  header?: any;
104
102
  loaderComponent?: any;
@@ -51,7 +51,6 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
- smsState?: import("..").SmsState | undefined;
55
54
  routes: import("..").AuthPageRoutes;
56
55
  header?: any;
57
56
  loaderComponent?: any;
@@ -98,7 +97,6 @@ declare const reducers: {
98
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
- smsState?: import("..").SmsState | undefined;
102
100
  routes: import("..").AuthPageRoutes;
103
101
  header?: any;
104
102
  loaderComponent?: any;
@@ -51,7 +51,6 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
- smsState?: import("..").SmsState | undefined;
55
54
  routes: import("..").AuthPageRoutes;
56
55
  header?: any;
57
56
  loaderComponent?: any;
@@ -98,7 +97,6 @@ declare const reducers: {
98
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
- smsState?: import("..").SmsState | undefined;
102
100
  routes: import("..").AuthPageRoutes;
103
101
  header?: any;
104
102
  loaderComponent?: any;
@@ -5,10 +5,10 @@ export declare function changePhoneNumber({ payload: { callback, ...body } }: Pa
5
5
  payload: Partial<import("../LoginState/interfaces").LoginState>;
6
6
  type: string;
7
7
  }> | import("redux-saga/effects").PutEffect<{
8
- payload: WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>;
8
+ payload: Partial<import("./interfaces").ResetPhoneNumberState>;
9
9
  type: string;
10
10
  }> | import("redux-saga/effects").PutEffect<{
11
- payload: Partial<import("./interfaces").ResetPhoneNumberState>;
11
+ payload: WithCallback<import("@frontegg/rest-api").IEmailPasswordlessPreLogin, void>;
12
12
  type: string;
13
13
  }>, void, {
14
14
  onRedirectTo: any;