@frontegg/redux-store 5.67.0 → 5.68.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.
- 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/ApiTokensState/index.d.ts +2 -0
- package/auth/ForgotPasswordState/index.d.ts +2 -0
- package/auth/LoginState/index.d.ts +2 -0
- package/auth/LoginState/saga.d.ts +2 -2
- package/auth/MfaState/index.d.ts +2 -0
- package/auth/ProfileState/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/SecurityPolicyState/index.d.ts +11 -0
- package/auth/SessionsState/index.d.ts +2 -0
- package/auth/SignUp/index.d.ts +2 -0
- package/auth/SocialLogins/index.d.ts +2 -0
- package/auth/TeamState/index.d.ts +2 -0
- package/auth/TenantsState/index.d.ts +2 -0
- package/auth/index.js +35 -0
- package/auth/interfaces.d.ts +1 -0
- package/auth/utils.d.ts +4 -0
- package/node/auth/index.js +1 -1
- package/node/{index-8034da1b.js → index-ceef14eb.js} +35 -0
- package/node/index.js +1 -1
- package/node/toolkit/index.js +1 -1
- package/package.json +1 -1
- package/toolkit/index.d.ts +1 -1
|
@@ -35,6 +35,7 @@ declare const reducers: {
|
|
|
35
35
|
tenantsState: import("..").TenantsState;
|
|
36
36
|
rolesState: import("..").RolesState;
|
|
37
37
|
sessionsState: import("..").SessionsState;
|
|
38
|
+
hostedLoginBox?: boolean | undefined;
|
|
38
39
|
routes: import("..").AuthPageRoutes;
|
|
39
40
|
header?: any;
|
|
40
41
|
loaderComponent?: any;
|
|
@@ -66,6 +67,7 @@ declare const reducers: {
|
|
|
66
67
|
tenantsState: import("..").TenantsState;
|
|
67
68
|
rolesState: import("..").RolesState;
|
|
68
69
|
sessionsState: import("..").SessionsState;
|
|
70
|
+
hostedLoginBox?: boolean | undefined;
|
|
69
71
|
routes: import("..").AuthPageRoutes;
|
|
70
72
|
header?: any;
|
|
71
73
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: import("..").RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: import("..").RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: import("..").RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: import("..").RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
|
@@ -104,6 +106,7 @@ declare const reducers: {
|
|
|
104
106
|
tenantsState: import("..").TenantsState;
|
|
105
107
|
rolesState: import("..").RolesState;
|
|
106
108
|
sessionsState: import("..").SessionsState;
|
|
109
|
+
hostedLoginBox?: boolean | undefined;
|
|
107
110
|
routes: import("..").AuthPageRoutes;
|
|
108
111
|
header?: any;
|
|
109
112
|
loaderComponent?: any;
|
|
@@ -53,6 +53,7 @@ declare const reducers: {
|
|
|
53
53
|
tenantsState: import("..").TenantsState;
|
|
54
54
|
rolesState: import("..").RolesState;
|
|
55
55
|
sessionsState: import("..").SessionsState;
|
|
56
|
+
hostedLoginBox?: boolean | undefined;
|
|
56
57
|
routes: import("..").AuthPageRoutes;
|
|
57
58
|
header?: any;
|
|
58
59
|
loaderComponent?: any;
|
|
@@ -84,6 +85,7 @@ declare const reducers: {
|
|
|
84
85
|
tenantsState: import("..").TenantsState;
|
|
85
86
|
rolesState: import("..").RolesState;
|
|
86
87
|
sessionsState: import("..").SessionsState;
|
|
88
|
+
hostedLoginBox?: boolean | undefined;
|
|
87
89
|
routes: import("..").AuthPageRoutes;
|
|
88
90
|
header?: any;
|
|
89
91
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: import("..").RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: import("..").RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
|
@@ -37,6 +37,7 @@ declare const reducers: {
|
|
|
37
37
|
tenantsState: import("..").TenantsState;
|
|
38
38
|
rolesState: import("..").RolesState;
|
|
39
39
|
sessionsState: import("..").SessionsState;
|
|
40
|
+
hostedLoginBox?: boolean | undefined;
|
|
40
41
|
routes: import("..").AuthPageRoutes;
|
|
41
42
|
header?: any;
|
|
42
43
|
loaderComponent?: any;
|
|
@@ -68,6 +69,7 @@ declare const reducers: {
|
|
|
68
69
|
tenantsState: import("..").TenantsState;
|
|
69
70
|
rolesState: import("..").RolesState;
|
|
70
71
|
sessionsState: import("..").SessionsState;
|
|
72
|
+
hostedLoginBox?: boolean | undefined;
|
|
71
73
|
routes: import("..").AuthPageRoutes;
|
|
72
74
|
header?: any;
|
|
73
75
|
loaderComponent?: any;
|
|
@@ -46,7 +46,7 @@ export declare function getMfaRequiredState(user: any): Generator<import("redux-
|
|
|
46
46
|
isAllowedToRemember: any;
|
|
47
47
|
mfaDeviceExpiration: any;
|
|
48
48
|
}>;
|
|
49
|
-
export declare function refreshToken(): Generator<import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").SelectEffect | CallEffect<true>, void, {
|
|
49
|
+
export declare function refreshToken(): Generator<import("redux-saga/effects").SelectEffect | CallEffect<void> | CallEffect<Generator<import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").SelectEffect | CallEffect<true>, void, {
|
|
50
50
|
routes: any;
|
|
51
51
|
includeQueryParam: any;
|
|
52
52
|
}> | import("redux-saga/effects").PutEffect<{
|
|
@@ -81,6 +81,6 @@ export declare function refreshToken(): Generator<import("redux-saga/effects").S
|
|
|
81
81
|
}> | CallEffect<ILoginResponseV2> | import("redux-saga/effects").PutEffect<{
|
|
82
82
|
payload: Partial<import("../..").TenantsState>;
|
|
83
83
|
type: string;
|
|
84
|
-
}>, void, AuthState & ILoginResponseV2 & Partial<AuthState
|
|
84
|
+
}>, void, AuthState & ILoginResponseV2 & Partial<AuthState>>>, void, AuthState>;
|
|
85
85
|
export declare function loginSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
86
86
|
export declare function loginSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
package/auth/MfaState/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare const reducers: {
|
|
|
40
40
|
tenantsState: import("..").TenantsState;
|
|
41
41
|
rolesState: import("..").RolesState;
|
|
42
42
|
sessionsState: import("..").SessionsState;
|
|
43
|
+
hostedLoginBox?: boolean | undefined;
|
|
43
44
|
routes: import("..").AuthPageRoutes;
|
|
44
45
|
header?: any;
|
|
45
46
|
loaderComponent?: any;
|
|
@@ -75,6 +76,7 @@ declare const reducers: {
|
|
|
75
76
|
tenantsState: import("..").TenantsState;
|
|
76
77
|
rolesState: import("..").RolesState;
|
|
77
78
|
sessionsState: import("..").SessionsState;
|
|
79
|
+
hostedLoginBox?: boolean | undefined;
|
|
78
80
|
routes: import("..").AuthPageRoutes;
|
|
79
81
|
header?: any;
|
|
80
82
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: import("..").RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: import("..").RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: import("..").RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: import("..").RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
|
@@ -36,6 +36,7 @@ declare const reducers: {
|
|
|
36
36
|
tenantsState: import("..").TenantsState;
|
|
37
37
|
rolesState: RolesState;
|
|
38
38
|
sessionsState: import("..").SessionsState;
|
|
39
|
+
hostedLoginBox?: boolean | undefined;
|
|
39
40
|
routes: import("..").AuthPageRoutes;
|
|
40
41
|
header?: any;
|
|
41
42
|
loaderComponent?: any;
|
|
@@ -67,6 +68,7 @@ declare const reducers: {
|
|
|
67
68
|
tenantsState: import("..").TenantsState;
|
|
68
69
|
rolesState: RolesState;
|
|
69
70
|
sessionsState: import("..").SessionsState;
|
|
71
|
+
hostedLoginBox?: boolean | undefined;
|
|
70
72
|
routes: import("..").AuthPageRoutes;
|
|
71
73
|
header?: any;
|
|
72
74
|
loaderComponent?: any;
|
package/auth/SSOState/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare const reducers: {
|
|
|
54
54
|
tenantsState: import("..").TenantsState;
|
|
55
55
|
rolesState: import("..").RolesState;
|
|
56
56
|
sessionsState: import("..").SessionsState;
|
|
57
|
+
hostedLoginBox?: boolean | undefined;
|
|
57
58
|
routes: import("..").AuthPageRoutes;
|
|
58
59
|
header?: any;
|
|
59
60
|
loaderComponent?: any;
|
|
@@ -85,6 +86,7 @@ declare const reducers: {
|
|
|
85
86
|
tenantsState: import("..").TenantsState;
|
|
86
87
|
rolesState: import("..").RolesState;
|
|
87
88
|
sessionsState: import("..").SessionsState;
|
|
89
|
+
hostedLoginBox?: boolean | undefined;
|
|
88
90
|
routes: import("..").AuthPageRoutes;
|
|
89
91
|
header?: any;
|
|
90
92
|
loaderComponent?: any;
|
|
@@ -34,6 +34,7 @@ declare const reducers: {
|
|
|
34
34
|
tenantsState: import("..").TenantsState;
|
|
35
35
|
rolesState: import("..").RolesState;
|
|
36
36
|
sessionsState: import("..").SessionsState;
|
|
37
|
+
hostedLoginBox?: boolean | undefined;
|
|
37
38
|
routes: import("..").AuthPageRoutes;
|
|
38
39
|
header?: any;
|
|
39
40
|
loaderComponent?: any;
|
|
@@ -78,6 +79,7 @@ declare const reducers: {
|
|
|
78
79
|
tenantsState: import("..").TenantsState;
|
|
79
80
|
rolesState: import("..").RolesState;
|
|
80
81
|
sessionsState: import("..").SessionsState;
|
|
82
|
+
hostedLoginBox?: boolean | undefined;
|
|
81
83
|
routes: import("..").AuthPageRoutes;
|
|
82
84
|
header?: any;
|
|
83
85
|
loaderComponent?: any;
|
|
@@ -122,6 +124,7 @@ declare const reducers: {
|
|
|
122
124
|
tenantsState: import("..").TenantsState;
|
|
123
125
|
rolesState: import("..").RolesState;
|
|
124
126
|
sessionsState: import("..").SessionsState;
|
|
127
|
+
hostedLoginBox?: boolean | undefined;
|
|
125
128
|
routes: import("..").AuthPageRoutes;
|
|
126
129
|
header?: any;
|
|
127
130
|
loaderComponent?: any;
|
|
@@ -166,6 +169,7 @@ declare const reducers: {
|
|
|
166
169
|
tenantsState: import("..").TenantsState;
|
|
167
170
|
rolesState: import("..").RolesState;
|
|
168
171
|
sessionsState: import("..").SessionsState;
|
|
172
|
+
hostedLoginBox?: boolean | undefined;
|
|
169
173
|
routes: import("..").AuthPageRoutes;
|
|
170
174
|
header?: any;
|
|
171
175
|
loaderComponent?: any;
|
|
@@ -210,6 +214,7 @@ declare const reducers: {
|
|
|
210
214
|
tenantsState: import("..").TenantsState;
|
|
211
215
|
rolesState: import("..").RolesState;
|
|
212
216
|
sessionsState: import("..").SessionsState;
|
|
217
|
+
hostedLoginBox?: boolean | undefined;
|
|
213
218
|
routes: import("..").AuthPageRoutes;
|
|
214
219
|
header?: any;
|
|
215
220
|
loaderComponent?: any;
|
|
@@ -254,6 +259,7 @@ declare const reducers: {
|
|
|
254
259
|
tenantsState: import("..").TenantsState;
|
|
255
260
|
rolesState: import("..").RolesState;
|
|
256
261
|
sessionsState: import("..").SessionsState;
|
|
262
|
+
hostedLoginBox?: boolean | undefined;
|
|
257
263
|
routes: import("..").AuthPageRoutes;
|
|
258
264
|
header?: any;
|
|
259
265
|
loaderComponent?: any;
|
|
@@ -298,6 +304,7 @@ declare const reducers: {
|
|
|
298
304
|
tenantsState: import("..").TenantsState;
|
|
299
305
|
rolesState: import("..").RolesState;
|
|
300
306
|
sessionsState: import("..").SessionsState;
|
|
307
|
+
hostedLoginBox?: boolean | undefined;
|
|
301
308
|
routes: import("..").AuthPageRoutes;
|
|
302
309
|
header?: any;
|
|
303
310
|
loaderComponent?: any;
|
|
@@ -342,6 +349,7 @@ declare const reducers: {
|
|
|
342
349
|
tenantsState: import("..").TenantsState;
|
|
343
350
|
rolesState: import("..").RolesState;
|
|
344
351
|
sessionsState: import("..").SessionsState;
|
|
352
|
+
hostedLoginBox?: boolean | undefined;
|
|
345
353
|
routes: import("..").AuthPageRoutes;
|
|
346
354
|
header?: any;
|
|
347
355
|
loaderComponent?: any;
|
|
@@ -386,6 +394,7 @@ declare const reducers: {
|
|
|
386
394
|
tenantsState: import("..").TenantsState;
|
|
387
395
|
rolesState: import("..").RolesState;
|
|
388
396
|
sessionsState: import("..").SessionsState;
|
|
397
|
+
hostedLoginBox?: boolean | undefined;
|
|
389
398
|
routes: import("..").AuthPageRoutes;
|
|
390
399
|
header?: any;
|
|
391
400
|
loaderComponent?: any;
|
|
@@ -430,6 +439,7 @@ declare const reducers: {
|
|
|
430
439
|
tenantsState: import("..").TenantsState;
|
|
431
440
|
rolesState: import("..").RolesState;
|
|
432
441
|
sessionsState: import("..").SessionsState;
|
|
442
|
+
hostedLoginBox?: boolean | undefined;
|
|
433
443
|
routes: import("..").AuthPageRoutes;
|
|
434
444
|
header?: any;
|
|
435
445
|
loaderComponent?: any;
|
|
@@ -461,6 +471,7 @@ declare const reducers: {
|
|
|
461
471
|
tenantsState: import("..").TenantsState;
|
|
462
472
|
rolesState: import("..").RolesState;
|
|
463
473
|
sessionsState: import("..").SessionsState;
|
|
474
|
+
hostedLoginBox?: boolean | undefined;
|
|
464
475
|
routes: import("..").AuthPageRoutes;
|
|
465
476
|
header?: any;
|
|
466
477
|
loaderComponent?: any;
|
|
@@ -34,6 +34,7 @@ declare const reducers: {
|
|
|
34
34
|
tenantsState: import("..").TenantsState;
|
|
35
35
|
rolesState: import("..").RolesState;
|
|
36
36
|
sessionsState: SessionsState;
|
|
37
|
+
hostedLoginBox?: boolean | undefined;
|
|
37
38
|
routes: import("..").AuthPageRoutes;
|
|
38
39
|
header?: any;
|
|
39
40
|
loaderComponent?: any;
|
|
@@ -65,6 +66,7 @@ declare const reducers: {
|
|
|
65
66
|
tenantsState: import("..").TenantsState;
|
|
66
67
|
rolesState: import("..").RolesState;
|
|
67
68
|
sessionsState: SessionsState;
|
|
69
|
+
hostedLoginBox?: boolean | undefined;
|
|
68
70
|
routes: import("..").AuthPageRoutes;
|
|
69
71
|
header?: any;
|
|
70
72
|
loaderComponent?: any;
|
package/auth/SignUp/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const reducers: {
|
|
|
34
34
|
tenantsState: import("..").TenantsState;
|
|
35
35
|
rolesState: import("..").RolesState;
|
|
36
36
|
sessionsState: import("..").SessionsState;
|
|
37
|
+
hostedLoginBox?: boolean | undefined;
|
|
37
38
|
routes: import("..").AuthPageRoutes;
|
|
38
39
|
header?: any;
|
|
39
40
|
loaderComponent?: any;
|
|
@@ -65,6 +66,7 @@ declare const reducers: {
|
|
|
65
66
|
tenantsState: import("..").TenantsState;
|
|
66
67
|
rolesState: import("..").RolesState;
|
|
67
68
|
sessionsState: import("..").SessionsState;
|
|
69
|
+
hostedLoginBox?: boolean | undefined;
|
|
68
70
|
routes: import("..").AuthPageRoutes;
|
|
69
71
|
header?: any;
|
|
70
72
|
loaderComponent?: any;
|
|
@@ -35,6 +35,7 @@ declare const reducers: {
|
|
|
35
35
|
tenantsState: import("..").TenantsState;
|
|
36
36
|
rolesState: import("..").RolesState;
|
|
37
37
|
sessionsState: import("..").SessionsState;
|
|
38
|
+
hostedLoginBox?: boolean | undefined;
|
|
38
39
|
routes: import("..").AuthPageRoutes;
|
|
39
40
|
header?: any;
|
|
40
41
|
loaderComponent?: any;
|
|
@@ -66,6 +67,7 @@ declare const reducers: {
|
|
|
66
67
|
tenantsState: import("..").TenantsState;
|
|
67
68
|
rolesState: import("..").RolesState;
|
|
68
69
|
sessionsState: import("..").SessionsState;
|
|
70
|
+
hostedLoginBox?: boolean | undefined;
|
|
69
71
|
routes: import("..").AuthPageRoutes;
|
|
70
72
|
header?: any;
|
|
71
73
|
loaderComponent?: any;
|
|
@@ -54,6 +54,7 @@ declare const reducers: {
|
|
|
54
54
|
tenantsState: import("..").TenantsState;
|
|
55
55
|
rolesState: import("..").RolesState;
|
|
56
56
|
sessionsState: import("..").SessionsState;
|
|
57
|
+
hostedLoginBox?: boolean | undefined;
|
|
57
58
|
routes: import("..").AuthPageRoutes;
|
|
58
59
|
header?: any;
|
|
59
60
|
loaderComponent?: any;
|
|
@@ -85,6 +86,7 @@ declare const reducers: {
|
|
|
85
86
|
tenantsState: import("..").TenantsState;
|
|
86
87
|
rolesState: import("..").RolesState;
|
|
87
88
|
sessionsState: import("..").SessionsState;
|
|
89
|
+
hostedLoginBox?: boolean | undefined;
|
|
88
90
|
routes: import("..").AuthPageRoutes;
|
|
89
91
|
header?: any;
|
|
90
92
|
loaderComponent?: any;
|
|
@@ -39,6 +39,7 @@ declare const reducers: {
|
|
|
39
39
|
tenantsState: TenantsState;
|
|
40
40
|
rolesState: import("..").RolesState;
|
|
41
41
|
sessionsState: import("..").SessionsState;
|
|
42
|
+
hostedLoginBox?: boolean | undefined;
|
|
42
43
|
routes: import("..").AuthPageRoutes;
|
|
43
44
|
header?: any;
|
|
44
45
|
loaderComponent?: any;
|
|
@@ -73,6 +74,7 @@ declare const reducers: {
|
|
|
73
74
|
tenantsState: TenantsState;
|
|
74
75
|
rolesState: import("..").RolesState;
|
|
75
76
|
sessionsState: import("..").SessionsState;
|
|
77
|
+
hostedLoginBox?: boolean | undefined;
|
|
76
78
|
routes: import("..").AuthPageRoutes;
|
|
77
79
|
header?: any;
|
|
78
80
|
loaderComponent?: any;
|
package/auth/index.js
CHANGED
|
@@ -1397,6 +1397,38 @@ function* getMfaRequiredState(user) {
|
|
|
1397
1397
|
return Object.assign(Object.assign({ user: undefined, isAuthenticated: false }, setMfaState), { loginState: Object.assign(Object.assign({}, loginState), { mfaToken: user.mfaToken, mfaRequired: user.mfaRequired, loading: false, error: undefined, step, tenantsLoading: true, email: user.userEmail, tenants: [], allowRememberMfaDevice: isAllowedToRemember, mfaDeviceExpiration }) });
|
|
1398
1398
|
}
|
|
1399
1399
|
function* refreshToken() {
|
|
1400
|
+
const { hostedLoginBox } = yield select((state) => state.auth);
|
|
1401
|
+
if (hostedLoginBox) {
|
|
1402
|
+
yield call(refreshTokenHosted);
|
|
1403
|
+
}
|
|
1404
|
+
else {
|
|
1405
|
+
yield call(refreshTokenEmbedded);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
function* refreshTokenHosted() {
|
|
1409
|
+
const { user } = yield select((state) => state.auth);
|
|
1410
|
+
if (!(user === null || user === void 0 ? void 0 : user.refreshToken)) {
|
|
1411
|
+
ContextHolder.setAccessToken(null);
|
|
1412
|
+
ContextHolder.setUser(null);
|
|
1413
|
+
yield put(actions.setState({ isAuthenticated: false }));
|
|
1414
|
+
return;
|
|
1415
|
+
}
|
|
1416
|
+
try {
|
|
1417
|
+
const body = {
|
|
1418
|
+
grant_type: 'refresh_token',
|
|
1419
|
+
refresh_token: user === null || user === void 0 ? void 0 : user.refreshToken
|
|
1420
|
+
};
|
|
1421
|
+
const authenticatedUser = yield call(api.auth.exchangeOAuthTokens, body);
|
|
1422
|
+
yield put(actions.setState({ user: authenticatedUser, isAuthenticated: true }));
|
|
1423
|
+
yield put(actions.loadTenants());
|
|
1424
|
+
}
|
|
1425
|
+
catch (e) {
|
|
1426
|
+
ContextHolder.setAccessToken(null);
|
|
1427
|
+
ContextHolder.setUser(null);
|
|
1428
|
+
yield put(actions.setState({ isAuthenticated: false }));
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
function* refreshTokenEmbedded() {
|
|
1400
1432
|
var _a;
|
|
1401
1433
|
try {
|
|
1402
1434
|
const onRedirectTo = ContextHolder.onRedirectTo;
|
|
@@ -1651,6 +1683,7 @@ function* passwordlessPostLogin(_a) {
|
|
|
1651
1683
|
else {
|
|
1652
1684
|
onRedirectTo(routes.loginUrl, { preserveQueryParams: true });
|
|
1653
1685
|
}
|
|
1686
|
+
localStorage.removeItem('register-quick-login');
|
|
1654
1687
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1655
1688
|
}
|
|
1656
1689
|
}
|
|
@@ -1889,6 +1922,7 @@ function* login({ payload: { email, password, recaptchaToken, invitationToken, c
|
|
|
1889
1922
|
if (isAuthenticated && loginState.flow === LoginFlow.Login) {
|
|
1890
1923
|
yield afterAuthNavigation();
|
|
1891
1924
|
}
|
|
1925
|
+
localStorage.removeItem('register-quick-login');
|
|
1892
1926
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1893
1927
|
}
|
|
1894
1928
|
catch (e) {
|
|
@@ -3639,6 +3673,7 @@ function* loginViaSocialLogin(_a) {
|
|
|
3639
3673
|
}
|
|
3640
3674
|
yield put(actions.setLoginState({ email, isNewUser }));
|
|
3641
3675
|
yield refreshToken();
|
|
3676
|
+
localStorage.removeItem('register-quick-login');
|
|
3642
3677
|
yield put(actions.setSocialLoginsState({ loading: false }));
|
|
3643
3678
|
}
|
|
3644
3679
|
catch (e) {
|
package/auth/interfaces.d.ts
CHANGED
package/auth/utils.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const resetStateByKey: <T>(key: keyof AuthState, initialState: Pa
|
|
|
26
26
|
tenantsState: import(".").TenantsState;
|
|
27
27
|
rolesState: import(".").RolesState;
|
|
28
28
|
sessionsState: import(".").SessionsState;
|
|
29
|
+
hostedLoginBox?: boolean | undefined;
|
|
29
30
|
routes: import("./interfaces").AuthPageRoutes;
|
|
30
31
|
header?: any;
|
|
31
32
|
loaderComponent?: any;
|
|
@@ -59,6 +60,7 @@ export declare const typeReducer: <T>(key: keyof AuthState) => (state: AuthState
|
|
|
59
60
|
tenantsState: import(".").TenantsState;
|
|
60
61
|
rolesState: import(".").RolesState;
|
|
61
62
|
sessionsState: import(".").SessionsState;
|
|
63
|
+
hostedLoginBox?: boolean | undefined;
|
|
62
64
|
routes: import("./interfaces").AuthPageRoutes;
|
|
63
65
|
header?: any;
|
|
64
66
|
loaderComponent?: any;
|
|
@@ -96,6 +98,7 @@ export declare const typeReducerForKey: <T>(key: keyof AuthState) => {
|
|
|
96
98
|
tenantsState: import(".").TenantsState;
|
|
97
99
|
rolesState: import(".").RolesState;
|
|
98
100
|
sessionsState: import(".").SessionsState;
|
|
101
|
+
hostedLoginBox?: boolean | undefined;
|
|
99
102
|
routes: import("./interfaces").AuthPageRoutes;
|
|
100
103
|
header?: any;
|
|
101
104
|
loaderComponent?: any;
|
|
@@ -134,6 +137,7 @@ export declare const typeReducerNestedKey: <T, K>(key: keyof AuthState, nestedKe
|
|
|
134
137
|
tenantsState: import(".").TenantsState;
|
|
135
138
|
rolesState: import(".").RolesState;
|
|
136
139
|
sessionsState: import(".").SessionsState;
|
|
140
|
+
hostedLoginBox?: boolean | undefined;
|
|
137
141
|
routes: import("./interfaces").AuthPageRoutes;
|
|
138
142
|
header?: any;
|
|
139
143
|
loaderComponent?: any;
|
package/node/auth/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('../index-
|
|
5
|
+
var auth_index = require('../index-ceef14eb.js');
|
|
6
6
|
var constants = require('../constants-52e37c08.js');
|
|
7
7
|
var restApi = require('@frontegg/rest-api');
|
|
8
8
|
require('@reduxjs/toolkit');
|
|
@@ -1316,6 +1316,38 @@ function* getMfaRequiredState(user) {
|
|
|
1316
1316
|
return Object.assign(Object.assign({ user: undefined, isAuthenticated: false }, setMfaState), { loginState: Object.assign(Object.assign({}, loginState), { mfaToken: user.mfaToken, mfaRequired: user.mfaRequired, loading: false, error: undefined, step, tenantsLoading: true, email: user.userEmail, tenants: [], allowRememberMfaDevice: isAllowedToRemember, mfaDeviceExpiration }) });
|
|
1317
1317
|
}
|
|
1318
1318
|
function* refreshToken() {
|
|
1319
|
+
const { hostedLoginBox } = yield effects.select((state) => state.auth);
|
|
1320
|
+
if (hostedLoginBox) {
|
|
1321
|
+
yield effects.call(refreshTokenHosted);
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1324
|
+
yield effects.call(refreshTokenEmbedded);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
function* refreshTokenHosted() {
|
|
1328
|
+
const { user } = yield effects.select((state) => state.auth);
|
|
1329
|
+
if (!(user === null || user === void 0 ? void 0 : user.refreshToken)) {
|
|
1330
|
+
restApi.ContextHolder.setAccessToken(null);
|
|
1331
|
+
restApi.ContextHolder.setUser(null);
|
|
1332
|
+
yield effects.put(actions.setState({ isAuthenticated: false }));
|
|
1333
|
+
return;
|
|
1334
|
+
}
|
|
1335
|
+
try {
|
|
1336
|
+
const body = {
|
|
1337
|
+
grant_type: 'refresh_token',
|
|
1338
|
+
refresh_token: user === null || user === void 0 ? void 0 : user.refreshToken
|
|
1339
|
+
};
|
|
1340
|
+
const authenticatedUser = yield effects.call(restApi.api.auth.exchangeOAuthTokens, body);
|
|
1341
|
+
yield effects.put(actions.setState({ user: authenticatedUser, isAuthenticated: true }));
|
|
1342
|
+
yield effects.put(actions.loadTenants());
|
|
1343
|
+
}
|
|
1344
|
+
catch (e) {
|
|
1345
|
+
restApi.ContextHolder.setAccessToken(null);
|
|
1346
|
+
restApi.ContextHolder.setUser(null);
|
|
1347
|
+
yield effects.put(actions.setState({ isAuthenticated: false }));
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function* refreshTokenEmbedded() {
|
|
1319
1351
|
var _a;
|
|
1320
1352
|
try {
|
|
1321
1353
|
const onRedirectTo = restApi.ContextHolder.onRedirectTo;
|
|
@@ -1570,6 +1602,7 @@ function* passwordlessPostLogin(_a) {
|
|
|
1570
1602
|
else {
|
|
1571
1603
|
onRedirectTo(routes.loginUrl, { preserveQueryParams: true });
|
|
1572
1604
|
}
|
|
1605
|
+
localStorage.removeItem('register-quick-login');
|
|
1573
1606
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1574
1607
|
}
|
|
1575
1608
|
}
|
|
@@ -1808,6 +1841,7 @@ function* login({ payload: { email, password, recaptchaToken, invitationToken, c
|
|
|
1808
1841
|
if (isAuthenticated && loginState.flow === exports.LoginFlow.Login) {
|
|
1809
1842
|
yield afterAuthNavigation();
|
|
1810
1843
|
}
|
|
1844
|
+
localStorage.removeItem('register-quick-login');
|
|
1811
1845
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1812
1846
|
}
|
|
1813
1847
|
catch (e) {
|
|
@@ -3558,6 +3592,7 @@ function* loginViaSocialLogin(_a) {
|
|
|
3558
3592
|
}
|
|
3559
3593
|
yield effects.put(actions.setLoginState({ email, isNewUser }));
|
|
3560
3594
|
yield refreshToken();
|
|
3595
|
+
localStorage.removeItem('register-quick-login');
|
|
3561
3596
|
yield effects.put(actions.setSocialLoginsState({ loading: false }));
|
|
3562
3597
|
}
|
|
3563
3598
|
catch (e) {
|
package/node/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('./index-
|
|
5
|
+
var auth_index = require('./index-ceef14eb.js');
|
|
6
6
|
var audits_index = require('./audits/index.js');
|
|
7
7
|
var connectivity_index = require('./connectivity/index.js');
|
|
8
8
|
var subscriptions_index = require('./subscriptions/index.js');
|
package/node/toolkit/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('../index-
|
|
5
|
+
var auth_index = require('../index-ceef14eb.js');
|
|
6
6
|
var toolkit = require('@reduxjs/toolkit');
|
|
7
7
|
var createSagaMiddleware = require('redux-saga');
|
|
8
8
|
var effects = require('redux-saga/effects');
|
package/package.json
CHANGED
package/toolkit/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { bindActionCreators, CaseReducerActions, SliceCaseReducers } from '@redu
|
|
|
12
12
|
export interface RootState {
|
|
13
13
|
context?: ContextOptions;
|
|
14
14
|
}
|
|
15
|
-
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "error" | "onRedirectTo" | "isAuthenticated" | "isLoading" | "keepSessionAlive" | "user" | "isSSOAuth" | "ssoACS" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "resetPhoneNumberState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "accountSettingsState" | "tenantsState" | "rolesState" | "sessionsState" | "header" | "loaderComponent">> & {
|
|
15
|
+
export declare const createFronteggStore: (rootInitialState: InitialState, storeHolder?: any, previewMode?: boolean, authInitialState?: (Partial<Pick<AuthState, "error" | "onRedirectTo" | "isAuthenticated" | "isLoading" | "keepSessionAlive" | "user" | "isSSOAuth" | "ssoACS" | "loginState" | "activateState" | "acceptInvitationState" | "forgotPasswordState" | "resetPhoneNumberState" | "ssoState" | "profileState" | "mfaState" | "teamState" | "socialLoginState" | "signUpState" | "apiTokensState" | "securityPolicyState" | "accountSettingsState" | "tenantsState" | "rolesState" | "sessionsState" | "hostedLoginBox" | "header" | "loaderComponent">> & {
|
|
16
16
|
routes?: Partial<AuthPageRoutes> | undefined;
|
|
17
17
|
}) | undefined, overrideInitialState?: Partial<{
|
|
18
18
|
auth: Partial<Omit<AuthState, 'routes'>> & {
|