@frontegg/redux-store 5.14.0 → 5.16.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/index.js CHANGED
@@ -498,6 +498,7 @@ const initialState = Object.assign({ routes: {
498
498
  socialLoginCallbackUrl: '/account/social/success',
499
499
  signUpUrl: '/account/sign-up',
500
500
  oidcRedirectUrl: '/account/oidc/callback',
501
+ samlCallbackUrl: '/account/saml/callback',
501
502
  magicLinkCallbackUrl: '/account/login/magic-link',
502
503
  hostedLoginRedirectUrl: '/oauth/callback'
503
504
  }, onRedirectTo: () => { } }, reinitializeState);
@@ -915,7 +916,7 @@ function* refreshToken() {
915
916
  else {
916
917
  yield put(actions.setTenantsState({ tenants, loading: false }));
917
918
  yield put(actions.setState({ user, isAuthenticated: true }));
918
- if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl].some(url => url && window.location.pathname.endsWith(url)) ||
919
+ if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl].some(url => url && window.location.pathname.endsWith(url)) ||
919
920
  (window.location.pathname.endsWith(routes.activateUrl) && user.verified)) {
920
921
  if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
921
922
  onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
@@ -1037,7 +1038,7 @@ function* verifyInviteToken({ payload }) {
1037
1038
  yield put(actions.setLoginState({ inviteTokenTenantName }));
1038
1039
  }
1039
1040
  catch (e) {
1040
- console.log(e);
1041
+ console.error(e);
1041
1042
  yield put(actions.setLoginState({ inviteTokenError: (_a = e.message) !== null && _a !== void 0 ? _a : `We couldn't verify your invitation` }));
1042
1043
  }
1043
1044
  finally {
@@ -500,6 +500,7 @@ const initialState = Object.assign({ routes: {
500
500
  socialLoginCallbackUrl: '/account/social/success',
501
501
  signUpUrl: '/account/sign-up',
502
502
  oidcRedirectUrl: '/account/oidc/callback',
503
+ samlCallbackUrl: '/account/saml/callback',
503
504
  magicLinkCallbackUrl: '/account/login/magic-link',
504
505
  hostedLoginRedirectUrl: '/oauth/callback'
505
506
  }, onRedirectTo: () => { } }, reinitializeState);
@@ -917,7 +918,7 @@ function* refreshToken() {
917
918
  else {
918
919
  yield effects.put(actions.setTenantsState({ tenants, loading: false }));
919
920
  yield effects.put(actions.setState({ user, isAuthenticated: true }));
920
- if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl].some(url => url && window.location.pathname.endsWith(url)) ||
921
+ if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl].some(url => url && window.location.pathname.endsWith(url)) ||
921
922
  (window.location.pathname.endsWith(routes.activateUrl) && user.verified)) {
922
923
  if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
923
924
  onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
@@ -1039,7 +1040,7 @@ function* verifyInviteToken({ payload }) {
1039
1040
  yield effects.put(actions.setLoginState({ inviteTokenTenantName }));
1040
1041
  }
1041
1042
  catch (e) {
1042
- console.log(e);
1043
+ console.error(e);
1043
1044
  yield effects.put(actions.setLoginState({ inviteTokenError: (_a = e.message) !== null && _a !== void 0 ? _a : `We couldn't verify your invitation` }));
1044
1045
  }
1045
1046
  finally {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.14.0",
4
+ "version": "5.16.1",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "dependencies": {
10
- "@frontegg/rest-api": "2.10.50",
10
+ "@frontegg/rest-api": "2.10.51",
11
11
  "@reduxjs/toolkit": "^1.5.0",
12
12
  "redux-saga": "^1.1.0",
13
13
  "tslib": "^2.3.1",