@frontegg/redux-store 6.168.0 → 6.170.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/LoginState/consts.d.ts +1 -0
- package/auth/LoginState/consts.js +4 -3
- package/auth/LoginState/saga.js +1 -2
- package/auth/interfaces.d.ts +4 -0
- package/index.js +1 -1
- package/node/auth/LoginState/consts.js +4 -3
- package/node/auth/LoginState/saga.js +1 -2
- package/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
@notice these file is used inside next js middleware
|
|
2
|
+
@notice these file is used inside next js middleware
|
|
3
3
|
middleware file in next js runs inside edge runtime
|
|
4
4
|
using redux-toolkit is not allowed inside edge runtime and breaks the build because it is using eval
|
|
5
|
-
please don't import from redux or from other files that import from redux
|
|
5
|
+
please don't import from redux or from other files that import from redux
|
|
6
6
|
*/
|
|
7
7
|
import { AuthStrategyEnum } from '@frontegg/rest-api';
|
|
8
8
|
import { LoginStep } from './interfaces';
|
|
@@ -30,5 +30,6 @@ export const defaultFronteggRoutes = {
|
|
|
30
30
|
oidcRedirectUrl: '/account/oidc/callback',
|
|
31
31
|
samlCallbackUrl: '/account/saml/callback',
|
|
32
32
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
33
|
-
hostedLoginRedirectUrl: '/oauth/callback'
|
|
33
|
+
hostedLoginRedirectUrl: '/oauth/callback',
|
|
34
|
+
openAppUrl: '/account/redirect'
|
|
34
35
|
};
|
package/auth/LoginState/saga.js
CHANGED
|
@@ -917,8 +917,7 @@ function* preLogin({
|
|
|
917
917
|
if (FronteggNativeModule.isAvailable('loginWithSSO')) {
|
|
918
918
|
FronteggNativeModule.loginWithSSO(email);
|
|
919
919
|
yield put(actions.setLoginState({
|
|
920
|
-
loading: false
|
|
921
|
-
step: LoginStep.redirectToSSO
|
|
920
|
+
loading: false
|
|
922
921
|
}));
|
|
923
922
|
callback == null ? void 0 : callback();
|
|
924
923
|
} else {
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -183,6 +183,10 @@ export declare type AuthPageRoutes = {
|
|
|
183
183
|
* custom login Authenticated url
|
|
184
184
|
*/
|
|
185
185
|
customLoginAuthenticatedUrl?: string;
|
|
186
|
+
/**
|
|
187
|
+
* open app url used for redirecting to app after login
|
|
188
|
+
*/
|
|
189
|
+
openAppUrl?: string;
|
|
186
190
|
};
|
|
187
191
|
export declare enum UserVeirifedOriginTypes {
|
|
188
192
|
SOCIAL_LOGIN = "SOCIAL_LOGIN",
|
package/index.js
CHANGED
|
@@ -7,10 +7,10 @@ exports.defaultFronteggRoutes = exports.authStrategyLoginStepMap = void 0;
|
|
|
7
7
|
var _restApi = require("@frontegg/rest-api");
|
|
8
8
|
var _interfaces = require("./interfaces");
|
|
9
9
|
/**
|
|
10
|
-
@notice these file is used inside next js middleware
|
|
10
|
+
@notice these file is used inside next js middleware
|
|
11
11
|
middleware file in next js runs inside edge runtime
|
|
12
12
|
using redux-toolkit is not allowed inside edge runtime and breaks the build because it is using eval
|
|
13
|
-
please don't import from redux or from other files that import from redux
|
|
13
|
+
please don't import from redux or from other files that import from redux
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
const authStrategyLoginStepMap = {
|
|
@@ -38,6 +38,7 @@ const defaultFronteggRoutes = {
|
|
|
38
38
|
oidcRedirectUrl: '/account/oidc/callback',
|
|
39
39
|
samlCallbackUrl: '/account/saml/callback',
|
|
40
40
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
41
|
-
hostedLoginRedirectUrl: '/oauth/callback'
|
|
41
|
+
hostedLoginRedirectUrl: '/oauth/callback',
|
|
42
|
+
openAppUrl: '/account/redirect'
|
|
42
43
|
};
|
|
43
44
|
exports.defaultFronteggRoutes = defaultFronteggRoutes;
|
|
@@ -943,8 +943,7 @@ function* preLogin({
|
|
|
943
943
|
if (_toolkit.FronteggNativeModule.isAvailable('loginWithSSO')) {
|
|
944
944
|
_toolkit.FronteggNativeModule.loginWithSSO(email);
|
|
945
945
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
946
|
-
loading: false
|
|
947
|
-
step: _interfaces2.LoginStep.redirectToSSO
|
|
946
|
+
loading: false
|
|
948
947
|
}));
|
|
949
948
|
callback == null ? void 0 : callback();
|
|
950
949
|
} else {
|
package/node/index.js
CHANGED