@frontegg/redux-store 6.154.0 → 6.155.0-alpha.1

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 (73) hide show
  1. package/auth/AcceptInvitationState/index.d.ts +2 -0
  2. package/auth/AccountSettingsState/index.d.ts +2 -0
  3. package/auth/ActivateState/index.d.ts +3 -0
  4. package/auth/ActivateState/saga.js +1 -1
  5. package/auth/ApiTokensState/index.d.ts +10 -0
  6. package/auth/CustomLoginState/index.d.ts +2 -0
  7. package/auth/ForgotPasswordState/index.d.ts +2 -0
  8. package/auth/GroupsState/groupsDialogsState.d.ts +12 -0
  9. package/auth/GroupsState/index.d.ts +2 -0
  10. package/auth/ImpersonationState/index.d.ts +2 -0
  11. package/auth/LoginState/consts.d.ts +1 -0
  12. package/auth/LoginState/consts.js +1 -0
  13. package/auth/LoginState/index.d.ts +2 -0
  14. package/auth/LoginState/interfaces.d.ts +5 -0
  15. package/auth/LoginState/mfaRequiredState.saga.js +1 -1
  16. package/auth/LoginState/saga.js +20 -10
  17. package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +14 -0
  18. package/auth/MSP/AllAccountsState/index.d.ts +3 -0
  19. package/auth/MfaState/index.d.ts +2 -0
  20. package/auth/PasskeysState/index.d.ts +2 -0
  21. package/auth/ProfileState/index.d.ts +2 -0
  22. package/auth/Provisioning/index.d.ts +2 -0
  23. package/auth/ResetPhoneNumberState/index.d.ts +2 -0
  24. package/auth/RolesState/index.d.ts +2 -0
  25. package/auth/SSOState/index.d.ts +2 -0
  26. package/auth/Security/RestrictionsState/index.d.ts +3 -12
  27. package/auth/Security/SecurityCenterState/index.d.ts +2 -0
  28. package/auth/Security/SecurityPolicyState/index.d.ts +13 -0
  29. package/auth/Security/SessionsPolicyState/index.d.ts +2 -0
  30. package/auth/SessionsState/index.d.ts +2 -0
  31. package/auth/SignUp/index.d.ts +2 -0
  32. package/auth/SmsState/index.d.ts +2 -0
  33. package/auth/SocialLogins/index.d.ts +2 -0
  34. package/auth/StepUpState/index.d.ts +124 -0
  35. package/auth/StepUpState/index.js +34 -0
  36. package/auth/StepUpState/interfaces.d.ts +14 -0
  37. package/auth/StepUpState/interfaces.js +1 -0
  38. package/auth/StepUpState/saga.d.ts +17 -0
  39. package/auth/StepUpState/saga.js +79 -0
  40. package/auth/StepUpState/utils.d.ts +3 -0
  41. package/auth/StepUpState/utils.js +10 -0
  42. package/auth/TeamState/index.d.ts +2 -0
  43. package/auth/TenantsState/index.d.ts +2 -0
  44. package/auth/index.d.ts +6 -0
  45. package/auth/index.js +2 -0
  46. package/auth/initialState.js +2 -0
  47. package/auth/interfaces.d.ts +8 -0
  48. package/auth/reducer.d.ts +6 -1
  49. package/auth/reducer.js +3 -2
  50. package/auth/saga.js +2 -1
  51. package/auth/utils.d.ts +6 -0
  52. package/index.d.ts +1 -0
  53. package/index.js +3 -2
  54. package/node/auth/LoginState/consts.js +1 -0
  55. package/node/auth/LoginState/mfaRequiredState.saga.js +1 -1
  56. package/node/auth/LoginState/saga.js +20 -10
  57. package/node/auth/StepUpState/index.js +47 -0
  58. package/node/auth/StepUpState/interfaces.js +5 -0
  59. package/node/auth/StepUpState/saga.js +88 -0
  60. package/node/auth/StepUpState/utils.js +19 -0
  61. package/node/auth/index.js +125 -101
  62. package/node/auth/initialState.js +2 -0
  63. package/node/auth/reducer.js +3 -2
  64. package/node/auth/saga.js +2 -1
  65. package/node/index.js +10 -2
  66. package/node/toolkit/FronteggNativeModule.js +50 -0
  67. package/node/toolkit/index.js +9 -1
  68. package/package.json +1 -1
  69. package/subscriptions/Billing/Information/saga.d.ts +4 -4
  70. package/toolkit/FronteggNativeModule.d.ts +25 -0
  71. package/toolkit/FronteggNativeModule.js +43 -0
  72. package/toolkit/index.d.ts +2 -1
  73. package/toolkit/index.js +1 -0
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
53
  smsState?: import("..").SmsState | undefined;
54
+ stepUpState?: import("..").StepUpState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
101
  smsState?: import("..").SmsState | undefined;
102
+ stepUpState?: import("..").StepUpState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -152,6 +154,7 @@ declare const reducers: {
152
154
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
153
155
  securityCenterState?: import("..").SecurityCenterState | undefined;
154
156
  smsState?: import("..").SmsState | undefined;
157
+ stepUpState?: import("..").StepUpState | undefined;
155
158
  routes: import("..").AuthPageRoutes;
156
159
  header?: any;
157
160
  loaderComponent?: any;
@@ -7,7 +7,7 @@ const _excluded = ["callback", "events"],
7
7
  import { call, delay, put, select, takeLeading } from 'redux-saga/effects';
8
8
  import { api, ContextHolder } from '@frontegg/rest-api';
9
9
  import { actions } from '../reducer';
10
- import { afterAuthenticationStateUpdate, afterAuthNavigation } from '../LoginState/saga';
10
+ import { afterAuthNavigation, afterAuthenticationStateUpdate } from '../LoginState/saga';
11
11
  import { getMfaRequiredState } from '../LoginState/mfaRequiredState.saga';
12
12
  import { UserVeirifedOriginTypes } from '../interfaces';
13
13
  import { ActivateAccountStep } from './interfaces';
@@ -45,6 +45,10 @@ declare const reducers: {
45
45
  resetPhoneNumberState: import("..").ResetPhoneNumberState;
46
46
  ssoState: import("..").SSOState;
47
47
  profileState: import("..").ProfileState;
48
+ /**
49
+ * if you see error in matcher that's mean the DispatchAction does not
50
+ * contains the same functions in reducers and actions
51
+ */
48
52
  mfaState: import("..").MFAState;
49
53
  teamState: import("..").TeamState;
50
54
  groupsState: import("..").GroupsState;
@@ -69,6 +73,7 @@ declare const reducers: {
69
73
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
70
74
  securityCenterState?: import("..").SecurityCenterState | undefined;
71
75
  smsState?: import("..").SmsState | undefined;
76
+ stepUpState?: import("..").StepUpState | undefined;
72
77
  routes: import("..").AuthPageRoutes;
73
78
  header?: any;
74
79
  loaderComponent?: any;
@@ -92,6 +97,10 @@ declare const reducers: {
92
97
  resetPhoneNumberState: import("..").ResetPhoneNumberState;
93
98
  ssoState: import("..").SSOState;
94
99
  profileState: import("..").ProfileState;
100
+ /**
101
+ * if you see error in matcher that's mean the DispatchAction does not
102
+ * contains the same functions in reducers and actions
103
+ */
95
104
  mfaState: import("..").MFAState;
96
105
  teamState: import("..").TeamState;
97
106
  groupsState: import("..").GroupsState;
@@ -116,6 +125,7 @@ declare const reducers: {
116
125
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
117
126
  securityCenterState?: import("..").SecurityCenterState | undefined;
118
127
  smsState?: import("..").SmsState | undefined;
128
+ stepUpState?: import("..").StepUpState | undefined;
119
129
  routes: import("..").AuthPageRoutes;
120
130
  header?: any;
121
131
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
53
  smsState?: import("..").SmsState | undefined;
54
+ stepUpState?: import("..").StepUpState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
101
  smsState?: import("..").SmsState | undefined;
102
+ stepUpState?: import("..").StepUpState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
53
  smsState?: import("..").SmsState | undefined;
54
+ stepUpState?: import("..").StepUpState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
101
  smsState?: import("..").SmsState | undefined;
102
+ stepUpState?: import("..").StepUpState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
51
51
  securityCenterState?: import("..").SecurityCenterState | undefined;
52
52
  smsState?: import("..").SmsState | undefined;
53
+ stepUpState?: import("..").StepUpState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -97,6 +98,7 @@ declare const reducers: {
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
99
100
  smsState?: import("..").SmsState | undefined;
101
+ stepUpState?: import("..").StepUpState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -143,6 +145,7 @@ declare const reducers: {
143
145
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
144
146
  securityCenterState?: import("..").SecurityCenterState | undefined;
145
147
  smsState?: import("..").SmsState | undefined;
148
+ stepUpState?: import("..").StepUpState | undefined;
146
149
  routes: import("..").AuthPageRoutes;
147
150
  header?: any;
148
151
  loaderComponent?: any;
@@ -189,6 +192,7 @@ declare const reducers: {
189
192
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
190
193
  securityCenterState?: import("..").SecurityCenterState | undefined;
191
194
  smsState?: import("..").SmsState | undefined;
195
+ stepUpState?: import("..").StepUpState | undefined;
192
196
  routes: import("..").AuthPageRoutes;
193
197
  header?: any;
194
198
  loaderComponent?: any;
@@ -242,6 +246,7 @@ declare const reducers: {
242
246
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
243
247
  securityCenterState?: import("..").SecurityCenterState | undefined;
244
248
  smsState?: import("..").SmsState | undefined;
249
+ stepUpState?: import("..").StepUpState | undefined;
245
250
  routes: import("..").AuthPageRoutes;
246
251
  header?: any;
247
252
  loaderComponent?: any;
@@ -289,6 +294,7 @@ declare const reducers: {
289
294
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
290
295
  securityCenterState?: import("..").SecurityCenterState | undefined;
291
296
  smsState?: import("..").SmsState | undefined;
297
+ stepUpState?: import("..").StepUpState | undefined;
292
298
  routes: import("..").AuthPageRoutes;
293
299
  header?: any;
294
300
  loaderComponent?: any;
@@ -363,6 +369,7 @@ declare const reducers: {
363
369
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
364
370
  securityCenterState?: import("..").SecurityCenterState | undefined;
365
371
  smsState?: import("..").SmsState | undefined;
372
+ stepUpState?: import("..").StepUpState | undefined;
366
373
  routes: import("..").AuthPageRoutes;
367
374
  header?: any;
368
375
  loaderComponent?: any;
@@ -410,6 +417,7 @@ declare const reducers: {
410
417
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
411
418
  securityCenterState?: import("..").SecurityCenterState | undefined;
412
419
  smsState?: import("..").SmsState | undefined;
420
+ stepUpState?: import("..").StepUpState | undefined;
413
421
  routes: import("..").AuthPageRoutes;
414
422
  header?: any;
415
423
  loaderComponent?: any;
@@ -456,6 +464,7 @@ declare const reducers: {
456
464
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
457
465
  securityCenterState?: import("..").SecurityCenterState | undefined;
458
466
  smsState?: import("..").SmsState | undefined;
467
+ stepUpState?: import("..").StepUpState | undefined;
459
468
  routes: import("..").AuthPageRoutes;
460
469
  header?: any;
461
470
  loaderComponent?: any;
@@ -502,6 +511,7 @@ declare const reducers: {
502
511
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
503
512
  securityCenterState?: import("..").SecurityCenterState | undefined;
504
513
  smsState?: import("..").SmsState | undefined;
514
+ stepUpState?: import("..").StepUpState | undefined;
505
515
  routes: import("..").AuthPageRoutes;
506
516
  header?: any;
507
517
  loaderComponent?: any;
@@ -555,6 +565,7 @@ declare const reducers: {
555
565
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
556
566
  securityCenterState?: import("..").SecurityCenterState | undefined;
557
567
  smsState?: import("..").SmsState | undefined;
568
+ stepUpState?: import("..").StepUpState | undefined;
558
569
  routes: import("..").AuthPageRoutes;
559
570
  header?: any;
560
571
  loaderComponent?: any;
@@ -602,6 +613,7 @@ declare const reducers: {
602
613
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
603
614
  securityCenterState?: import("..").SecurityCenterState | undefined;
604
615
  smsState?: import("..").SmsState | undefined;
616
+ stepUpState?: import("..").StepUpState | undefined;
605
617
  routes: import("..").AuthPageRoutes;
606
618
  header?: any;
607
619
  loaderComponent?: any;
@@ -68,6 +68,7 @@ declare const reducers: {
68
68
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
69
69
  securityCenterState?: import("..").SecurityCenterState | undefined;
70
70
  smsState?: import("..").SmsState | undefined;
71
+ stepUpState?: import("..").StepUpState | undefined;
71
72
  routes: import("..").AuthPageRoutes;
72
73
  header?: any;
73
74
  loaderComponent?: any;
@@ -115,6 +116,7 @@ declare const reducers: {
115
116
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
116
117
  securityCenterState?: import("..").SecurityCenterState | undefined;
117
118
  smsState?: import("..").SmsState | undefined;
119
+ stepUpState?: import("..").StepUpState | undefined;
118
120
  routes: import("..").AuthPageRoutes;
119
121
  header?: any;
120
122
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
53
  smsState?: import("..").SmsState | undefined;
54
+ stepUpState?: import("..").StepUpState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
101
  smsState?: import("..").SmsState | undefined;
102
+ stepUpState?: import("..").StepUpState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -10,6 +10,7 @@ export declare const authStrategyLoginStepMap: Record<Exclude<AuthStrategyEnum,
10
10
  export declare const defaultFronteggRoutes: {
11
11
  authenticatedUrl: string;
12
12
  loginUrl: string;
13
+ stepUpUrl: string;
13
14
  logoutUrl: string;
14
15
  activateUrl: string;
15
16
  impersonationUrl: string;
@@ -17,6 +17,7 @@ export const authStrategyLoginStepMap = {
17
17
  export const defaultFronteggRoutes = {
18
18
  authenticatedUrl: '/',
19
19
  loginUrl: '/account/login',
20
+ stepUpUrl: '/account/step-up',
20
21
  logoutUrl: '/account/logout',
21
22
  activateUrl: '/account/activate',
22
23
  impersonationUrl: '/account/impersonate',
@@ -53,6 +53,7 @@ declare const reducers: {
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
55
  smsState?: import("..").SmsState | undefined;
56
+ stepUpState?: import("..").StepUpState | undefined;
56
57
  routes: import("..").AuthPageRoutes;
57
58
  header?: any;
58
59
  loaderComponent?: any;
@@ -100,6 +101,7 @@ declare const reducers: {
100
101
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
101
102
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
103
  smsState?: import("..").SmsState | undefined;
104
+ stepUpState?: import("..").StepUpState | undefined;
103
105
  routes: import("..").AuthPageRoutes;
104
106
  header?: any;
105
107
  loaderComponent?: any;
@@ -1,6 +1,7 @@
1
1
  import { AuthStrategyEnum, IEnrollMFAWebAuthn, ILoginResponse, IPasswordlessPostLogin, IRecoverMFAToken, ITenantsResponse, IVerifyMFAWebAuthn, IVerifyNewWebAuthnDevice, IWebAuthnPostLogin } from '@frontegg/rest-api';
2
2
  import { WithCallback } from '../../interfaces';
3
3
  import { CustomEventsOptions } from '../interfaces';
4
+ import { Action } from '@reduxjs/toolkit';
4
5
  export declare enum LoginStep {
5
6
  'preLogin' = "preLogin",
6
7
  'magicLinkPreLoginSuccess' = "magicLinkPreLoginSuccess",
@@ -97,3 +98,7 @@ export declare type IVerifyMFAWebAuthnPayload = WithCallback<WithDeviceId<Omit<I
97
98
  export interface IRecoverMFATokenPayload extends WithCallback<IRecoverMFAToken> {
98
99
  recaptchaToken?: string;
99
100
  }
101
+ export declare type SetLoadingAction = ({ loading, error }: {
102
+ loading?: boolean;
103
+ error?: unknown;
104
+ }) => Action;
@@ -3,7 +3,7 @@ import { call, select } from 'redux-saga/effects';
3
3
  import { api } from '@frontegg/rest-api';
4
4
  import { getMfaStepForEnrolledUsers, getMfaStepForNotEnrolledUsers } from './utils';
5
5
  import { LoginStep, LoginFlow } from './interfaces';
6
- // Separated folder due to circular dependency
6
+ // Separated file due to circular dependency
7
7
 
8
8
  export function* getMfaRequiredState(user) {
9
9
  let step = LoginStep.loginWithTwoFactor;
@@ -42,6 +42,7 @@ import { errorHandler, GTMEventAction, reportGTMEvent } from '../../utils';
42
42
  import { authStrategyLoginStepMap } from './consts';
43
43
  import { isEntitlementsDeeplyEqual } from '../Entitlements';
44
44
  import { customLoginEnabled, loadCustomLoginRoutes } from '../CustomLoginState/saga';
45
+ import { FronteggNativeModule } from '../../toolkit';
45
46
 
46
47
  /**
47
48
  * Prevent unnecessary entitlements reference update inside the user object by
@@ -962,16 +963,25 @@ function* preLogin({
962
963
  }));
963
964
  ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
964
965
  }
965
- yield put(actions.setLoginState({
966
- step: LoginStep.redirectToSSO,
967
- loading: false,
968
- ssoRedirectUrl
969
- }));
970
- setTimeout(() => {
971
- onRedirectTo(ssoRedirectUrl, {
972
- refresh: true
973
- });
974
- }, 2000);
966
+ if (FronteggNativeModule.isAvailable()) {
967
+ FronteggNativeModule.loginWithSSO(email);
968
+ yield put(actions.setLoginState({
969
+ loading: false,
970
+ step: LoginStep.redirectToSSO
971
+ }));
972
+ callback == null ? void 0 : callback();
973
+ } else {
974
+ yield put(actions.setLoginState({
975
+ step: LoginStep.redirectToSSO,
976
+ loading: false,
977
+ ssoRedirectUrl
978
+ }));
979
+ setTimeout(() => {
980
+ onRedirectTo(ssoRedirectUrl, {
981
+ refresh: true
982
+ });
983
+ }, 2000);
984
+ }
975
985
  } else {
976
986
  yield ssoPreloginFailed({
977
987
  email,
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("../..").SecurityCenterState | undefined;
53
53
  smsState?: import("../..").SmsState | undefined;
54
+ stepUpState?: import("../..").StepUpState | undefined;
54
55
  routes: import("../..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("../..").SecurityCenterState | undefined;
100
101
  smsState?: import("../..").SmsState | undefined;
102
+ stepUpState?: import("../..").StepUpState | undefined;
101
103
  routes: import("../..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -163,6 +165,7 @@ declare const reducers: {
163
165
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
164
166
  securityCenterState?: import("../..").SecurityCenterState | undefined;
165
167
  smsState?: import("../..").SmsState | undefined;
168
+ stepUpState?: import("../..").StepUpState | undefined;
166
169
  routes: import("../..").AuthPageRoutes;
167
170
  header?: any;
168
171
  loaderComponent?: any;
@@ -210,6 +213,7 @@ declare const reducers: {
210
213
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
211
214
  securityCenterState?: import("../..").SecurityCenterState | undefined;
212
215
  smsState?: import("../..").SmsState | undefined;
216
+ stepUpState?: import("../..").StepUpState | undefined;
213
217
  routes: import("../..").AuthPageRoutes;
214
218
  header?: any;
215
219
  loaderComponent?: any;
@@ -263,6 +267,7 @@ declare const reducers: {
263
267
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
264
268
  securityCenterState?: import("../..").SecurityCenterState | undefined;
265
269
  smsState?: import("../..").SmsState | undefined;
270
+ stepUpState?: import("../..").StepUpState | undefined;
266
271
  routes: import("../..").AuthPageRoutes;
267
272
  header?: any;
268
273
  loaderComponent?: any;
@@ -310,6 +315,7 @@ declare const reducers: {
310
315
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
311
316
  securityCenterState?: import("../..").SecurityCenterState | undefined;
312
317
  smsState?: import("../..").SmsState | undefined;
318
+ stepUpState?: import("../..").StepUpState | undefined;
313
319
  routes: import("../..").AuthPageRoutes;
314
320
  header?: any;
315
321
  loaderComponent?: any;
@@ -375,6 +381,7 @@ declare const reducers: {
375
381
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
376
382
  securityCenterState?: import("../..").SecurityCenterState | undefined;
377
383
  smsState?: import("../..").SmsState | undefined;
384
+ stepUpState?: import("../..").StepUpState | undefined;
378
385
  routes: import("../..").AuthPageRoutes;
379
386
  header?: any;
380
387
  loaderComponent?: any;
@@ -422,6 +429,7 @@ declare const reducers: {
422
429
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
423
430
  securityCenterState?: import("../..").SecurityCenterState | undefined;
424
431
  smsState?: import("../..").SmsState | undefined;
432
+ stepUpState?: import("../..").StepUpState | undefined;
425
433
  routes: import("../..").AuthPageRoutes;
426
434
  header?: any;
427
435
  loaderComponent?: any;
@@ -487,6 +495,7 @@ declare const reducers: {
487
495
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
488
496
  securityCenterState?: import("../..").SecurityCenterState | undefined;
489
497
  smsState?: import("../..").SmsState | undefined;
498
+ stepUpState?: import("../..").StepUpState | undefined;
490
499
  routes: import("../..").AuthPageRoutes;
491
500
  header?: any;
492
501
  loaderComponent?: any;
@@ -534,6 +543,7 @@ declare const reducers: {
534
543
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
535
544
  securityCenterState?: import("../..").SecurityCenterState | undefined;
536
545
  smsState?: import("../..").SmsState | undefined;
546
+ stepUpState?: import("../..").StepUpState | undefined;
537
547
  routes: import("../..").AuthPageRoutes;
538
548
  header?: any;
539
549
  loaderComponent?: any;
@@ -605,6 +615,7 @@ declare const reducers: {
605
615
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
606
616
  securityCenterState?: import("../..").SecurityCenterState | undefined;
607
617
  smsState?: import("../..").SmsState | undefined;
618
+ stepUpState?: import("../..").StepUpState | undefined;
608
619
  routes: import("../..").AuthPageRoutes;
609
620
  header?: any;
610
621
  loaderComponent?: any;
@@ -652,6 +663,7 @@ declare const reducers: {
652
663
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
653
664
  securityCenterState?: import("../..").SecurityCenterState | undefined;
654
665
  smsState?: import("../..").SmsState | undefined;
666
+ stepUpState?: import("../..").StepUpState | undefined;
655
667
  routes: import("../..").AuthPageRoutes;
656
668
  header?: any;
657
669
  loaderComponent?: any;
@@ -705,6 +717,7 @@ declare const reducers: {
705
717
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
706
718
  securityCenterState?: import("../..").SecurityCenterState | undefined;
707
719
  smsState?: import("../..").SmsState | undefined;
720
+ stepUpState?: import("../..").StepUpState | undefined;
708
721
  routes: import("../..").AuthPageRoutes;
709
722
  header?: any;
710
723
  loaderComponent?: any;
@@ -752,6 +765,7 @@ declare const reducers: {
752
765
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
753
766
  securityCenterState?: import("../..").SecurityCenterState | undefined;
754
767
  smsState?: import("../..").SmsState | undefined;
768
+ stepUpState?: import("../..").StepUpState | undefined;
755
769
  routes: import("../..").AuthPageRoutes;
756
770
  header?: any;
757
771
  loaderComponent?: any;
@@ -70,6 +70,7 @@ declare const reducers: {
70
70
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
71
71
  securityCenterState?: import("../..").SecurityCenterState | undefined;
72
72
  smsState?: import("../..").SmsState | undefined;
73
+ stepUpState?: import("../..").StepUpState | undefined;
73
74
  routes: import("../..").AuthPageRoutes;
74
75
  header?: any;
75
76
  loaderComponent?: any;
@@ -124,6 +125,7 @@ declare const reducers: {
124
125
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
125
126
  securityCenterState?: import("../..").SecurityCenterState | undefined;
126
127
  smsState?: import("../..").SmsState | undefined;
128
+ stepUpState?: import("../..").StepUpState | undefined;
127
129
  routes: import("../..").AuthPageRoutes;
128
130
  header?: any;
129
131
  loaderComponent?: any;
@@ -171,6 +173,7 @@ declare const reducers: {
171
173
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
172
174
  securityCenterState?: import("../..").SecurityCenterState | undefined;
173
175
  smsState?: import("../..").SmsState | undefined;
176
+ stepUpState?: import("../..").StepUpState | undefined;
174
177
  routes: import("../..").AuthPageRoutes;
175
178
  header?: any;
176
179
  loaderComponent?: any;
@@ -53,6 +53,7 @@ declare const reducers: {
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
55
  smsState?: import("..").SmsState | undefined;
56
+ stepUpState?: import("..").StepUpState | undefined;
56
57
  routes: import("..").AuthPageRoutes;
57
58
  header?: any;
58
59
  loaderComponent?: any;
@@ -100,6 +101,7 @@ declare const reducers: {
100
101
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
101
102
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
103
  smsState?: import("..").SmsState | undefined;
104
+ stepUpState?: import("..").StepUpState | undefined;
103
105
  routes: import("..").AuthPageRoutes;
104
106
  header?: any;
105
107
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
53
  smsState?: import("..").SmsState | undefined;
54
+ stepUpState?: import("..").StepUpState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
101
  smsState?: import("..").SmsState | undefined;
102
+ stepUpState?: import("..").StepUpState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
54
  smsState?: import("..").SmsState | undefined;
55
+ stepUpState?: import("..").StepUpState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -99,6 +100,7 @@ declare const reducers: {
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
102
  smsState?: import("..").SmsState | undefined;
103
+ stepUpState?: import("..").StepUpState | undefined;
102
104
  routes: import("..").AuthPageRoutes;
103
105
  header?: any;
104
106
  loaderComponent?: any;
@@ -70,6 +70,7 @@ declare const reducers: {
70
70
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
71
71
  securityCenterState?: import("..").SecurityCenterState | undefined;
72
72
  smsState?: import("..").SmsState | undefined;
73
+ stepUpState?: import("..").StepUpState | undefined;
73
74
  routes: import("..").AuthPageRoutes;
74
75
  header?: any;
75
76
  loaderComponent?: any;
@@ -117,6 +118,7 @@ declare const reducers: {
117
118
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
118
119
  securityCenterState?: import("..").SecurityCenterState | undefined;
119
120
  smsState?: import("..").SmsState | undefined;
121
+ stepUpState?: import("..").StepUpState | undefined;
120
122
  routes: import("..").AuthPageRoutes;
121
123
  header?: any;
122
124
  loaderComponent?: any;