@frontegg/redux-store 6.155.0-alpha.1 → 6.156.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.
- package/auth/AcceptInvitationState/index.d.ts +0 -2
- package/auth/AccountSettingsState/index.d.ts +0 -2
- package/auth/ActivateState/index.d.ts +0 -3
- package/auth/ActivateState/saga.js +1 -1
- package/auth/ApiTokensState/index.d.ts +0 -10
- package/auth/CustomLoginState/index.d.ts +0 -2
- package/auth/ForgotPasswordState/index.d.ts +0 -2
- package/auth/GroupsState/groupsDialogsState.d.ts +0 -12
- package/auth/GroupsState/index.d.ts +0 -2
- package/auth/ImpersonationState/index.d.ts +0 -2
- package/auth/LoginState/consts.d.ts +0 -1
- package/auth/LoginState/consts.js +0 -1
- package/auth/LoginState/index.d.ts +0 -2
- package/auth/LoginState/interfaces.d.ts +0 -5
- package/auth/LoginState/mfaRequiredState.saga.js +1 -1
- package/auth/LoginState/saga.js +8 -0
- package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +0 -14
- package/auth/MSP/AllAccountsState/index.d.ts +0 -3
- package/auth/MfaState/index.d.ts +0 -2
- package/auth/PasskeysState/index.d.ts +0 -2
- package/auth/ProfileState/index.d.ts +0 -2
- package/auth/Provisioning/index.d.ts +0 -2
- package/auth/ResetPhoneNumberState/index.d.ts +0 -2
- package/auth/RolesState/index.d.ts +0 -2
- package/auth/SSOState/index.d.ts +0 -2
- package/auth/Security/RestrictionsState/index.d.ts +12 -3
- package/auth/Security/SecurityCenterState/index.d.ts +0 -2
- package/auth/Security/SecurityPolicyState/index.d.ts +0 -13
- package/auth/Security/SessionsPolicyState/index.d.ts +0 -2
- package/auth/SessionsState/index.d.ts +0 -2
- package/auth/SignUp/index.d.ts +0 -2
- package/auth/SmsState/index.d.ts +0 -2
- package/auth/SocialLogins/index.d.ts +0 -2
- package/auth/TeamState/index.d.ts +0 -2
- package/auth/TenantsState/index.d.ts +0 -2
- package/auth/index.d.ts +0 -6
- package/auth/index.js +0 -2
- package/auth/initialState.js +0 -2
- package/auth/interfaces.d.ts +0 -8
- package/auth/reducer.d.ts +1 -6
- package/auth/reducer.js +2 -3
- package/auth/saga.js +1 -2
- package/auth/utils.d.ts +0 -6
- package/index.d.ts +0 -1
- package/index.js +2 -3
- package/node/auth/LoginState/consts.js +0 -1
- package/node/auth/LoginState/mfaRequiredState.saga.js +1 -1
- package/node/auth/LoginState/saga.js +8 -0
- package/node/auth/index.js +101 -125
- package/node/auth/initialState.js +0 -2
- package/node/auth/reducer.js +2 -3
- package/node/auth/saga.js +1 -2
- package/node/index.js +2 -10
- package/package.json +1 -1
- package/toolkit/index.d.ts +1 -1
- package/auth/StepUpState/index.d.ts +0 -124
- package/auth/StepUpState/index.js +0 -34
- package/auth/StepUpState/interfaces.d.ts +0 -14
- package/auth/StepUpState/interfaces.js +0 -1
- package/auth/StepUpState/saga.d.ts +0 -17
- package/auth/StepUpState/saga.js +0 -79
- package/auth/StepUpState/utils.d.ts +0 -3
- package/auth/StepUpState/utils.js +0 -10
- package/node/auth/StepUpState/index.js +0 -47
- package/node/auth/StepUpState/interfaces.js +0 -5
- package/node/auth/StepUpState/saga.js +0 -88
- package/node/auth/StepUpState/utils.js +0 -19
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
103
101
|
routes: import("..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
|
@@ -154,7 +152,6 @@ declare const reducers: {
|
|
|
154
152
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
155
153
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
156
154
|
smsState?: import("..").SmsState | undefined;
|
|
157
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
158
155
|
routes: import("..").AuthPageRoutes;
|
|
159
156
|
header?: any;
|
|
160
157
|
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 {
|
|
10
|
+
import { afterAuthenticationStateUpdate, afterAuthNavigation } from '../LoginState/saga';
|
|
11
11
|
import { getMfaRequiredState } from '../LoginState/mfaRequiredState.saga';
|
|
12
12
|
import { UserVeirifedOriginTypes } from '../interfaces';
|
|
13
13
|
import { ActivateAccountStep } from './interfaces';
|
|
@@ -45,10 +45,6 @@ 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
|
-
*/
|
|
52
48
|
mfaState: import("..").MFAState;
|
|
53
49
|
teamState: import("..").TeamState;
|
|
54
50
|
groupsState: import("..").GroupsState;
|
|
@@ -73,7 +69,6 @@ declare const reducers: {
|
|
|
73
69
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
74
70
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
75
71
|
smsState?: import("..").SmsState | undefined;
|
|
76
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
77
72
|
routes: import("..").AuthPageRoutes;
|
|
78
73
|
header?: any;
|
|
79
74
|
loaderComponent?: any;
|
|
@@ -97,10 +92,6 @@ declare const reducers: {
|
|
|
97
92
|
resetPhoneNumberState: import("..").ResetPhoneNumberState;
|
|
98
93
|
ssoState: import("..").SSOState;
|
|
99
94
|
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
|
-
*/
|
|
104
95
|
mfaState: import("..").MFAState;
|
|
105
96
|
teamState: import("..").TeamState;
|
|
106
97
|
groupsState: import("..").GroupsState;
|
|
@@ -125,7 +116,6 @@ declare const reducers: {
|
|
|
125
116
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
126
117
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
127
118
|
smsState?: import("..").SmsState | undefined;
|
|
128
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
129
119
|
routes: import("..").AuthPageRoutes;
|
|
130
120
|
header?: any;
|
|
131
121
|
loaderComponent?: any;
|
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
103
101
|
routes: import("..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
103
101
|
routes: import("..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -50,7 +50,6 @@ 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;
|
|
54
53
|
routes: import("..").AuthPageRoutes;
|
|
55
54
|
header?: any;
|
|
56
55
|
loaderComponent?: any;
|
|
@@ -98,7 +97,6 @@ declare const reducers: {
|
|
|
98
97
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
99
98
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
100
99
|
smsState?: import("..").SmsState | undefined;
|
|
101
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
102
100
|
routes: import("..").AuthPageRoutes;
|
|
103
101
|
header?: any;
|
|
104
102
|
loaderComponent?: any;
|
|
@@ -145,7 +143,6 @@ declare const reducers: {
|
|
|
145
143
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
146
144
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
147
145
|
smsState?: import("..").SmsState | undefined;
|
|
148
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
149
146
|
routes: import("..").AuthPageRoutes;
|
|
150
147
|
header?: any;
|
|
151
148
|
loaderComponent?: any;
|
|
@@ -192,7 +189,6 @@ declare const reducers: {
|
|
|
192
189
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
193
190
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
194
191
|
smsState?: import("..").SmsState | undefined;
|
|
195
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
196
192
|
routes: import("..").AuthPageRoutes;
|
|
197
193
|
header?: any;
|
|
198
194
|
loaderComponent?: any;
|
|
@@ -246,7 +242,6 @@ declare const reducers: {
|
|
|
246
242
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
247
243
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
248
244
|
smsState?: import("..").SmsState | undefined;
|
|
249
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
250
245
|
routes: import("..").AuthPageRoutes;
|
|
251
246
|
header?: any;
|
|
252
247
|
loaderComponent?: any;
|
|
@@ -294,7 +289,6 @@ declare const reducers: {
|
|
|
294
289
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
295
290
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
296
291
|
smsState?: import("..").SmsState | undefined;
|
|
297
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
298
292
|
routes: import("..").AuthPageRoutes;
|
|
299
293
|
header?: any;
|
|
300
294
|
loaderComponent?: any;
|
|
@@ -369,7 +363,6 @@ declare const reducers: {
|
|
|
369
363
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
370
364
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
371
365
|
smsState?: import("..").SmsState | undefined;
|
|
372
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
373
366
|
routes: import("..").AuthPageRoutes;
|
|
374
367
|
header?: any;
|
|
375
368
|
loaderComponent?: any;
|
|
@@ -417,7 +410,6 @@ declare const reducers: {
|
|
|
417
410
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
418
411
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
419
412
|
smsState?: import("..").SmsState | undefined;
|
|
420
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
421
413
|
routes: import("..").AuthPageRoutes;
|
|
422
414
|
header?: any;
|
|
423
415
|
loaderComponent?: any;
|
|
@@ -464,7 +456,6 @@ declare const reducers: {
|
|
|
464
456
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
465
457
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
466
458
|
smsState?: import("..").SmsState | undefined;
|
|
467
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
468
459
|
routes: import("..").AuthPageRoutes;
|
|
469
460
|
header?: any;
|
|
470
461
|
loaderComponent?: any;
|
|
@@ -511,7 +502,6 @@ declare const reducers: {
|
|
|
511
502
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
512
503
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
513
504
|
smsState?: import("..").SmsState | undefined;
|
|
514
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
515
505
|
routes: import("..").AuthPageRoutes;
|
|
516
506
|
header?: any;
|
|
517
507
|
loaderComponent?: any;
|
|
@@ -565,7 +555,6 @@ declare const reducers: {
|
|
|
565
555
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
566
556
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
567
557
|
smsState?: import("..").SmsState | undefined;
|
|
568
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
569
558
|
routes: import("..").AuthPageRoutes;
|
|
570
559
|
header?: any;
|
|
571
560
|
loaderComponent?: any;
|
|
@@ -613,7 +602,6 @@ declare const reducers: {
|
|
|
613
602
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
614
603
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
615
604
|
smsState?: import("..").SmsState | undefined;
|
|
616
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
617
605
|
routes: import("..").AuthPageRoutes;
|
|
618
606
|
header?: any;
|
|
619
607
|
loaderComponent?: any;
|
|
@@ -68,7 +68,6 @@ 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;
|
|
72
71
|
routes: import("..").AuthPageRoutes;
|
|
73
72
|
header?: any;
|
|
74
73
|
loaderComponent?: any;
|
|
@@ -116,7 +115,6 @@ declare const reducers: {
|
|
|
116
115
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
117
116
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
118
117
|
smsState?: import("..").SmsState | undefined;
|
|
119
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
120
118
|
routes: import("..").AuthPageRoutes;
|
|
121
119
|
header?: any;
|
|
122
120
|
loaderComponent?: any;
|
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
103
101
|
routes: import("..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -10,7 +10,6 @@ export declare const authStrategyLoginStepMap: Record<Exclude<AuthStrategyEnum,
|
|
|
10
10
|
export declare const defaultFronteggRoutes: {
|
|
11
11
|
authenticatedUrl: string;
|
|
12
12
|
loginUrl: string;
|
|
13
|
-
stepUpUrl: string;
|
|
14
13
|
logoutUrl: string;
|
|
15
14
|
activateUrl: string;
|
|
16
15
|
impersonationUrl: string;
|
|
@@ -17,7 +17,6 @@ export const authStrategyLoginStepMap = {
|
|
|
17
17
|
export const defaultFronteggRoutes = {
|
|
18
18
|
authenticatedUrl: '/',
|
|
19
19
|
loginUrl: '/account/login',
|
|
20
|
-
stepUpUrl: '/account/step-up',
|
|
21
20
|
logoutUrl: '/account/logout',
|
|
22
21
|
activateUrl: '/account/activate',
|
|
23
22
|
impersonationUrl: '/account/impersonate',
|
|
@@ -53,7 +53,6 @@ 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;
|
|
57
56
|
routes: import("..").AuthPageRoutes;
|
|
58
57
|
header?: any;
|
|
59
58
|
loaderComponent?: any;
|
|
@@ -101,7 +100,6 @@ declare const reducers: {
|
|
|
101
100
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
102
101
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
103
102
|
smsState?: import("..").SmsState | undefined;
|
|
104
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
105
103
|
routes: import("..").AuthPageRoutes;
|
|
106
104
|
header?: any;
|
|
107
105
|
loaderComponent?: any;
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
export declare enum LoginStep {
|
|
6
5
|
'preLogin' = "preLogin",
|
|
7
6
|
'magicLinkPreLoginSuccess' = "magicLinkPreLoginSuccess",
|
|
@@ -98,7 +97,3 @@ export declare type IVerifyMFAWebAuthnPayload = WithCallback<WithDeviceId<Omit<I
|
|
|
98
97
|
export interface IRecoverMFATokenPayload extends WithCallback<IRecoverMFAToken> {
|
|
99
98
|
recaptchaToken?: string;
|
|
100
99
|
}
|
|
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
|
|
6
|
+
// Separated folder due to circular dependency
|
|
7
7
|
|
|
8
8
|
export function* getMfaRequiredState(user) {
|
|
9
9
|
let step = LoginStep.loginWithTwoFactor;
|
package/auth/LoginState/saga.js
CHANGED
|
@@ -502,6 +502,10 @@ function* refreshOrRequestHostedLoginAuthorize({
|
|
|
502
502
|
} = yield select(state => ({
|
|
503
503
|
disableSilentRefresh: state.auth.disableSilentRefresh
|
|
504
504
|
}));
|
|
505
|
+
if ((additionalParams == null ? void 0 : additionalParams.prompt) === 'login') {
|
|
506
|
+
yield requestHostedLoginAuthorize(additionalParams);
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
505
509
|
try {
|
|
506
510
|
if (disableSilentRefresh) {
|
|
507
511
|
throw new Error('silent refresh is disabled');
|
|
@@ -537,6 +541,10 @@ function* refreshOrRequestHostedLoginAuthorizeV2({
|
|
|
537
541
|
} = yield select(state => ({
|
|
538
542
|
disableSilentRefresh: state.auth.disableSilentRefresh
|
|
539
543
|
}));
|
|
544
|
+
if ((additionalParams == null ? void 0 : additionalParams.prompt) === 'login') {
|
|
545
|
+
yield requestHostedLoginAuthorize(additionalParams);
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
540
548
|
try {
|
|
541
549
|
if (disableSilentRefresh) {
|
|
542
550
|
throw new Error('silent refresh is disabled');
|
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("../..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("../..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
103
101
|
routes: import("../..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -165,7 +163,6 @@ declare const reducers: {
|
|
|
165
163
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
166
164
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
167
165
|
smsState?: import("../..").SmsState | undefined;
|
|
168
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
169
166
|
routes: import("../..").AuthPageRoutes;
|
|
170
167
|
header?: any;
|
|
171
168
|
loaderComponent?: any;
|
|
@@ -213,7 +210,6 @@ declare const reducers: {
|
|
|
213
210
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
214
211
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
215
212
|
smsState?: import("../..").SmsState | undefined;
|
|
216
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
217
213
|
routes: import("../..").AuthPageRoutes;
|
|
218
214
|
header?: any;
|
|
219
215
|
loaderComponent?: any;
|
|
@@ -267,7 +263,6 @@ declare const reducers: {
|
|
|
267
263
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
268
264
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
269
265
|
smsState?: import("../..").SmsState | undefined;
|
|
270
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
271
266
|
routes: import("../..").AuthPageRoutes;
|
|
272
267
|
header?: any;
|
|
273
268
|
loaderComponent?: any;
|
|
@@ -315,7 +310,6 @@ declare const reducers: {
|
|
|
315
310
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
316
311
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
317
312
|
smsState?: import("../..").SmsState | undefined;
|
|
318
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
319
313
|
routes: import("../..").AuthPageRoutes;
|
|
320
314
|
header?: any;
|
|
321
315
|
loaderComponent?: any;
|
|
@@ -381,7 +375,6 @@ declare const reducers: {
|
|
|
381
375
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
382
376
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
383
377
|
smsState?: import("../..").SmsState | undefined;
|
|
384
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
385
378
|
routes: import("../..").AuthPageRoutes;
|
|
386
379
|
header?: any;
|
|
387
380
|
loaderComponent?: any;
|
|
@@ -429,7 +422,6 @@ declare const reducers: {
|
|
|
429
422
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
430
423
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
431
424
|
smsState?: import("../..").SmsState | undefined;
|
|
432
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
433
425
|
routes: import("../..").AuthPageRoutes;
|
|
434
426
|
header?: any;
|
|
435
427
|
loaderComponent?: any;
|
|
@@ -495,7 +487,6 @@ declare const reducers: {
|
|
|
495
487
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
496
488
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
497
489
|
smsState?: import("../..").SmsState | undefined;
|
|
498
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
499
490
|
routes: import("../..").AuthPageRoutes;
|
|
500
491
|
header?: any;
|
|
501
492
|
loaderComponent?: any;
|
|
@@ -543,7 +534,6 @@ declare const reducers: {
|
|
|
543
534
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
544
535
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
545
536
|
smsState?: import("../..").SmsState | undefined;
|
|
546
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
547
537
|
routes: import("../..").AuthPageRoutes;
|
|
548
538
|
header?: any;
|
|
549
539
|
loaderComponent?: any;
|
|
@@ -615,7 +605,6 @@ declare const reducers: {
|
|
|
615
605
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
616
606
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
617
607
|
smsState?: import("../..").SmsState | undefined;
|
|
618
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
619
608
|
routes: import("../..").AuthPageRoutes;
|
|
620
609
|
header?: any;
|
|
621
610
|
loaderComponent?: any;
|
|
@@ -663,7 +652,6 @@ declare const reducers: {
|
|
|
663
652
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
664
653
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
665
654
|
smsState?: import("../..").SmsState | undefined;
|
|
666
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
667
655
|
routes: import("../..").AuthPageRoutes;
|
|
668
656
|
header?: any;
|
|
669
657
|
loaderComponent?: any;
|
|
@@ -717,7 +705,6 @@ declare const reducers: {
|
|
|
717
705
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
718
706
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
719
707
|
smsState?: import("../..").SmsState | undefined;
|
|
720
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
721
708
|
routes: import("../..").AuthPageRoutes;
|
|
722
709
|
header?: any;
|
|
723
710
|
loaderComponent?: any;
|
|
@@ -765,7 +752,6 @@ declare const reducers: {
|
|
|
765
752
|
allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
|
|
766
753
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
767
754
|
smsState?: import("../..").SmsState | undefined;
|
|
768
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
769
755
|
routes: import("../..").AuthPageRoutes;
|
|
770
756
|
header?: any;
|
|
771
757
|
loaderComponent?: any;
|
|
@@ -70,7 +70,6 @@ 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;
|
|
74
73
|
routes: import("../..").AuthPageRoutes;
|
|
75
74
|
header?: any;
|
|
76
75
|
loaderComponent?: any;
|
|
@@ -125,7 +124,6 @@ declare const reducers: {
|
|
|
125
124
|
allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
|
|
126
125
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
127
126
|
smsState?: import("../..").SmsState | undefined;
|
|
128
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
129
127
|
routes: import("../..").AuthPageRoutes;
|
|
130
128
|
header?: any;
|
|
131
129
|
loaderComponent?: any;
|
|
@@ -173,7 +171,6 @@ declare const reducers: {
|
|
|
173
171
|
allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
|
|
174
172
|
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
175
173
|
smsState?: import("../..").SmsState | undefined;
|
|
176
|
-
stepUpState?: import("../..").StepUpState | undefined;
|
|
177
174
|
routes: import("../..").AuthPageRoutes;
|
|
178
175
|
header?: any;
|
|
179
176
|
loaderComponent?: any;
|
package/auth/MfaState/index.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ 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;
|
|
57
56
|
routes: import("..").AuthPageRoutes;
|
|
58
57
|
header?: any;
|
|
59
58
|
loaderComponent?: any;
|
|
@@ -101,7 +100,6 @@ declare const reducers: {
|
|
|
101
100
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
102
101
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
103
102
|
smsState?: import("..").SmsState | undefined;
|
|
104
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
105
103
|
routes: import("..").AuthPageRoutes;
|
|
106
104
|
header?: any;
|
|
107
105
|
loaderComponent?: any;
|
|
@@ -51,7 +51,6 @@ 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;
|
|
55
54
|
routes: import("..").AuthPageRoutes;
|
|
56
55
|
header?: any;
|
|
57
56
|
loaderComponent?: any;
|
|
@@ -99,7 +98,6 @@ declare const reducers: {
|
|
|
99
98
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
100
99
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
101
100
|
smsState?: import("..").SmsState | undefined;
|
|
102
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
103
101
|
routes: import("..").AuthPageRoutes;
|
|
104
102
|
header?: any;
|
|
105
103
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
|
@@ -52,7 +52,6 @@ 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;
|
|
56
55
|
routes: import("..").AuthPageRoutes;
|
|
57
56
|
header?: any;
|
|
58
57
|
loaderComponent?: any;
|
|
@@ -100,7 +99,6 @@ declare const reducers: {
|
|
|
100
99
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
101
100
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
102
101
|
smsState?: import("..").SmsState | undefined;
|
|
103
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
104
102
|
routes: import("..").AuthPageRoutes;
|
|
105
103
|
header?: any;
|
|
106
104
|
loaderComponent?: any;
|
package/auth/SSOState/index.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ 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;
|
|
74
73
|
routes: import("..").AuthPageRoutes;
|
|
75
74
|
header?: any;
|
|
76
75
|
loaderComponent?: any;
|
|
@@ -118,7 +117,6 @@ declare const reducers: {
|
|
|
118
117
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
119
118
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
120
119
|
smsState?: import("..").SmsState | undefined;
|
|
121
|
-
stepUpState?: import("..").StepUpState | undefined;
|
|
122
120
|
routes: import("..").AuthPageRoutes;
|
|
123
121
|
header?: any;
|
|
124
122
|
loaderComponent?: any;
|