@frontegg/redux-store 5.79.0 → 5.80.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/index.js CHANGED
@@ -1520,10 +1520,14 @@ function* refreshTokenEmbedded() {
1520
1520
  }));
1521
1521
  const url = new URL(window === null || window === void 0 ? void 0 : window.location.href);
1522
1522
  const invitationToken = url.searchParams.get('invitationToken');
1523
+ const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl];
1524
+ if (!invitationToken) {
1525
+ redirectRoutes.push(routes.loginUrl, routes.signUpUrl);
1526
+ }
1523
1527
  if (shouldNavigateToRegisterQuicKLogin) {
1524
1528
  onRedirectTo(routes.loginUrl);
1525
1529
  }
1526
- else if (!invitationToken && [routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl]
1530
+ else if (redirectRoutes
1527
1531
  .some(url => url && window.location.pathname.endsWith(url))) {
1528
1532
  if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
1529
1533
  onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../index-a3c0e1be.js');
5
+ var auth_index = require('../index-179542cb.js');
6
6
  var constants = require('../constants-52e37c08.js');
7
7
  var restApi = require('@frontegg/rest-api');
8
8
  require('@reduxjs/toolkit');
@@ -1439,10 +1439,14 @@ function* refreshTokenEmbedded() {
1439
1439
  }));
1440
1440
  const url = new URL(window === null || window === void 0 ? void 0 : window.location.href);
1441
1441
  const invitationToken = url.searchParams.get('invitationToken');
1442
+ const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl];
1443
+ if (!invitationToken) {
1444
+ redirectRoutes.push(routes.loginUrl, routes.signUpUrl);
1445
+ }
1442
1446
  if (shouldNavigateToRegisterQuicKLogin) {
1443
1447
  onRedirectTo(routes.loginUrl);
1444
1448
  }
1445
- else if (!invitationToken && [routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl]
1449
+ else if (redirectRoutes
1446
1450
  .some(url => url && window.location.pathname.endsWith(url))) {
1447
1451
  if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
1448
1452
  onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
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-a3c0e1be.js');
5
+ var auth_index = require('./index-179542cb.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');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../index-a3c0e1be.js');
5
+ var auth_index = require('../index-179542cb.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.79.0",
4
+ "version": "5.80.0",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",