@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.
@@ -24,4 +24,5 @@ export declare const defaultFronteggRoutes: {
24
24
  samlCallbackUrl: string;
25
25
  magicLinkCallbackUrl: string;
26
26
  hostedLoginRedirectUrl: string;
27
+ openAppUrl: string;
27
28
  };
@@ -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
  };
@@ -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 {
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.168.0
1
+ /** @license Frontegg v6.170.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.168.0
1
+ /** @license Frontegg v6.170.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.168.0",
3
+ "version": "6.170.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",