@frontegg/redux-store 6.162.0 → 6.163.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 +2 -0
- package/auth/AccountSettingsState/index.d.ts +2 -0
- package/auth/ActivateState/index.d.ts +3 -0
- package/auth/ActivateState/saga.js +3 -2
- package/auth/ApiTokensState/index.d.ts +2 -0
- package/auth/CustomLoginState/index.d.ts +2 -0
- package/auth/ForgotPasswordState/index.d.ts +2 -0
- package/auth/GroupsState/groupsDialogsState.d.ts +12 -0
- package/auth/GroupsState/index.d.ts +2 -0
- package/auth/ImpersonationState/index.d.ts +2 -0
- package/auth/LoginState/consts.d.ts +1 -0
- package/auth/LoginState/consts.js +1 -0
- package/auth/LoginState/index.d.ts +3 -1
- package/auth/LoginState/index.js +1 -1
- package/auth/LoginState/interfaces.d.ts +10 -0
- package/auth/LoginState/saga.d.ts +3 -17
- package/auth/LoginState/saga.js +21 -385
- package/auth/LoginState/saga.utils.d.ts +12 -0
- package/auth/LoginState/saga.utils.js +47 -0
- package/auth/LoginState/sagas/afterAuthNavigation.saga.d.ts +29 -0
- package/auth/LoginState/sagas/afterAuthNavigation.saga.js +143 -0
- package/auth/LoginState/sagas/handleVerifyMFAResponse.saga.d.ts +54 -0
- package/auth/LoginState/sagas/handleVerifyMFAResponse.saga.js +80 -0
- package/auth/LoginState/sagas/index.d.ts +7 -0
- package/auth/LoginState/sagas/index.js +7 -0
- package/auth/LoginState/{mfaRequiredState.saga.d.ts → sagas/mfaRequiredState.saga.d.ts} +3 -3
- package/auth/LoginState/{mfaRequiredState.saga.js → sagas/mfaRequiredState.saga.js} +2 -2
- package/auth/LoginState/sagas/mfaWithAuthenticator.saga.d.ts +42 -0
- package/auth/LoginState/sagas/mfaWithAuthenticator.saga.js +140 -0
- package/auth/LoginState/sagas/mfaWithEmailCode.saga.d.ts +73 -0
- package/auth/LoginState/sagas/mfaWithEmailCode.saga.js +96 -0
- package/auth/LoginState/sagas/mfaWithSMS.saga.d.ts +79 -0
- package/auth/LoginState/sagas/mfaWithSMS.saga.js +107 -0
- package/auth/LoginState/sagas/mfaWithWebAuthn.saga.d.ts +83 -0
- package/auth/LoginState/sagas/mfaWithWebAuthn.saga.js +119 -0
- package/auth/LoginState/utils.d.ts +3 -1
- package/auth/LoginState/utils.js +7 -2
- package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +14 -0
- package/auth/MSP/AllAccountsState/index.d.ts +3 -0
- package/auth/MfaState/index.d.ts +2 -0
- package/auth/MfaState/interfaces.d.ts +2 -1
- package/auth/MfaState/interfaces.js +1 -0
- package/auth/MfaState/saga.js +1 -1
- package/auth/PasskeysState/index.d.ts +2 -0
- package/auth/ProfileState/index.d.ts +2 -0
- package/auth/Provisioning/index.d.ts +2 -0
- package/auth/ResetPhoneNumberState/index.d.ts +2 -0
- package/auth/RolesState/index.d.ts +2 -0
- package/auth/SSOState/index.d.ts +2 -0
- package/auth/Security/RestrictionsState/index.d.ts +3 -12
- package/auth/Security/SecurityCenterState/index.d.ts +2 -0
- package/auth/Security/SecurityPolicyState/index.d.ts +13 -0
- package/auth/Security/SessionsPolicyState/index.d.ts +2 -0
- package/auth/SessionsState/index.d.ts +2 -0
- package/auth/SignUp/index.d.ts +2 -0
- package/auth/SignUp/saga.js +1 -1
- package/auth/SmsState/index.d.ts +2 -0
- package/auth/SocialLogins/index.d.ts +2 -0
- package/auth/StepUpState/consts.d.ts +17 -0
- package/auth/StepUpState/consts.js +20 -0
- package/auth/StepUpState/generateStepUpSession.saga.d.ts +14 -0
- package/auth/StepUpState/generateStepUpSession.saga.js +103 -0
- package/auth/StepUpState/index.d.ts +138 -0
- package/auth/StepUpState/index.js +54 -0
- package/auth/StepUpState/interfaces.d.ts +23 -0
- package/auth/StepUpState/interfaces.js +1 -0
- package/auth/StepUpState/saga.d.ts +131 -0
- package/auth/StepUpState/saga.js +104 -0
- package/auth/StepUpState/utils.d.ts +15 -0
- package/auth/StepUpState/utils.js +24 -0
- package/auth/TeamState/index.d.ts +2 -0
- package/auth/TenantsState/index.d.ts +2 -0
- package/auth/index.d.ts +12 -0
- package/auth/index.js +2 -0
- package/auth/initialState.js +2 -0
- package/auth/interfaces.d.ts +9 -0
- package/auth/reducer.d.ts +12 -1
- package/auth/reducer.js +3 -2
- package/auth/saga.js +2 -1
- package/auth/utils.d.ts +6 -0
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/node/auth/ActivateState/saga.js +3 -2
- package/node/auth/LoginState/consts.js +1 -0
- package/node/auth/LoginState/index.js +6 -0
- package/node/auth/LoginState/saga.js +56 -412
- package/node/auth/LoginState/saga.utils.js +55 -0
- package/node/auth/LoginState/sagas/afterAuthNavigation.saga.js +150 -0
- package/node/auth/LoginState/sagas/handleVerifyMFAResponse.saga.js +87 -0
- package/node/auth/LoginState/sagas/index.js +82 -0
- package/node/auth/LoginState/{mfaRequiredState.saga.js → sagas/mfaRequiredState.saga.js} +2 -2
- package/node/auth/LoginState/sagas/mfaWithAuthenticator.saga.js +147 -0
- package/node/auth/LoginState/sagas/mfaWithEmailCode.saga.js +106 -0
- package/node/auth/LoginState/sagas/mfaWithSMS.saga.js +116 -0
- package/node/auth/LoginState/sagas/mfaWithWebAuthn.saga.js +128 -0
- package/node/auth/LoginState/utils.js +8 -2
- package/node/auth/MfaState/interfaces.js +1 -0
- package/node/auth/MfaState/saga.js +1 -1
- package/node/auth/SignUp/saga.js +1 -1
- package/node/auth/StepUpState/consts.js +30 -0
- package/node/auth/StepUpState/generateStepUpSession.saga.js +108 -0
- package/node/auth/StepUpState/index.js +77 -0
- package/node/auth/StepUpState/interfaces.js +5 -0
- package/node/auth/StepUpState/saga.js +116 -0
- package/node/auth/StepUpState/utils.js +31 -0
- package/node/auth/index.js +125 -101
- package/node/auth/initialState.js +2 -0
- package/node/auth/reducer.js +3 -2
- package/node/auth/saga.js +2 -1
- package/node/index.js +10 -2
- package/package.json +1 -1
- package/toolkit/index.d.ts +1 -1
|
@@ -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,13 +7,14 @@ 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 {
|
|
11
|
-
import { getMfaRequiredState } from '../LoginState/mfaRequiredState.saga';
|
|
10
|
+
import { afterAuthNavigation } from '../LoginState/saga';
|
|
12
11
|
import { UserVeirifedOriginTypes } from '../interfaces';
|
|
13
12
|
import { ActivateAccountStep } from './interfaces';
|
|
14
13
|
import { TeamStateKeys } from '../TeamState/interfaces';
|
|
15
14
|
import { GTMEventAction, errorHandler, reportGTMEvent } from '../../utils';
|
|
16
15
|
import { isMfaRequired } from '../LoginState/utils';
|
|
16
|
+
import { afterAuthenticationStateUpdate } from '../LoginState/saga.utils';
|
|
17
|
+
import { getMfaRequiredState } from '../LoginState/sagas/mfaRequiredState.saga';
|
|
17
18
|
function* preActivateAccount({
|
|
18
19
|
payload: {
|
|
19
20
|
userId,
|
|
@@ -69,6 +69,7 @@ declare const reducers: {
|
|
|
69
69
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
70
70
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
71
71
|
smsState?: import("..").SmsState | undefined;
|
|
72
|
+
stepUpState?: import("..").StepUpState | undefined;
|
|
72
73
|
routes: import("..").AuthPageRoutes;
|
|
73
74
|
header?: any;
|
|
74
75
|
loaderComponent?: any;
|
|
@@ -116,6 +117,7 @@ declare const reducers: {
|
|
|
116
117
|
allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
|
|
117
118
|
securityCenterState?: import("..").SecurityCenterState | undefined;
|
|
118
119
|
smsState?: import("..").SmsState | undefined;
|
|
120
|
+
stepUpState?: import("..").StepUpState | undefined;
|
|
119
121
|
routes: import("..").AuthPageRoutes;
|
|
120
122
|
header?: any;
|
|
121
123
|
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;
|
|
@@ -235,4 +237,4 @@ declare type DispatchedActions = {
|
|
|
235
237
|
};
|
|
236
238
|
export declare type LoginActions = DispatchedActions;
|
|
237
239
|
export { loginState, reducers as loginReducers, actions as loginActions };
|
|
238
|
-
export { getRedirectUrl } from './utils';
|
|
240
|
+
export { getRedirectUrl, getSearchParam } from './utils';
|
package/auth/LoginState/index.js
CHANGED
|
@@ -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,6 +98,15 @@ export declare type IVerifyMFAWebAuthnPayload = WithCallback<WithDeviceId<Omit<I
|
|
|
97
98
|
export interface IRecoverMFATokenPayload extends WithCallback<IRecoverMFAToken> {
|
|
98
99
|
recaptchaToken?: string;
|
|
99
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Type for action to set the loading state
|
|
103
|
+
* @param options.loading - true if in loading state
|
|
104
|
+
* @param options.error - error if in error state
|
|
105
|
+
*/
|
|
106
|
+
export declare type SetLoadingAction = ({ loading, error }: {
|
|
107
|
+
loading?: boolean;
|
|
108
|
+
error?: unknown;
|
|
109
|
+
}) => Action;
|
|
100
110
|
export declare enum LoginActionTypes {
|
|
101
111
|
'social-login' = "social-login",
|
|
102
112
|
'custom-social-login' = "custom-social-login",
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { CallEffect } from 'redux-saga/effects';
|
|
2
|
-
import { ISamlMetadata
|
|
2
|
+
import { ISamlMetadata } from '@frontegg/rest-api';
|
|
3
3
|
import { AuthState } from '../interfaces';
|
|
4
|
-
export declare function afterAuthenticationStateUpdate({ user, tenants, activeTenant }: ILoginResponseV3, additionalUpdate?: Partial<AuthState>): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<{
|
|
5
|
-
payload: Partial<AuthState>;
|
|
6
|
-
type: string;
|
|
7
|
-
}>, void, AuthState>;
|
|
8
|
-
export declare function afterAuthNavigation(): Generator<import("redux-saga/effects").SelectEffect | Promise<unknown> | CallEffect<void>, void, {
|
|
9
|
-
routes: any;
|
|
10
|
-
includeQueryParam: any;
|
|
11
|
-
enforceRedirectToSameSite?: false | undefined;
|
|
12
|
-
allowedRedirectOrigins?: never[] | undefined;
|
|
13
|
-
} & string>;
|
|
14
4
|
export declare function refreshMetadata(): Generator<import("redux-saga/effects").PutEffect<{
|
|
15
5
|
payload: Partial<AuthState>;
|
|
16
6
|
type: string;
|
|
@@ -25,11 +15,7 @@ export declare function loadSSOPublicConfigurationFunction(): Generator<import("
|
|
|
25
15
|
}>;
|
|
26
16
|
export declare function refreshToken(): Generator<import("redux-saga/effects").SelectEffect | CallEffect<any>, void, AuthState>;
|
|
27
17
|
export declare function refreshTokenForSocialLogins(): Generator<import("redux-saga/effects").SelectEffect | CallEffect<any>, void, AuthState>;
|
|
28
|
-
export declare function shouldShowPromptPasskeys(): Generator<import("redux-saga/effects").SelectEffect | CallEffect<boolean[]> | CallEffect<IWebAuthnDevices> | import("redux-saga/effects").PutEffect<{
|
|
29
|
-
payload: Partial<import("../..").PasskeysState>;
|
|
30
|
-
type: string;
|
|
31
|
-
}>, boolean, {
|
|
32
|
-
publicAuthStrategyPolicy: any;
|
|
33
|
-
} & boolean[] & IWebAuthnDevices>;
|
|
34
18
|
export declare function loginSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
19
|
+
export { afterAuthNavigation } from './sagas/afterAuthNavigation.saga';
|
|
20
|
+
export { mfaWithAuthenticator } from './sagas/mfaWithAuthenticator.saga';
|
|
35
21
|
export declare function loginSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|