@frontegg/redux-store 6.181.0 → 6.182.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.
@@ -40,6 +40,7 @@ import { afterAuthenticationStateUpdate, shouldShowPromptPasskeys } from './saga
40
40
  import { isSteppedUp } from '../StepUpState/utils';
41
41
  import { afterAuthNavigation, loginWithMfa, preVerifyMFASMSForLogin, verifyMFASMSForLogin, preVerifyMFAWebAuthnForLogin, verifyMFAWebAuthnForLogin, preVerifyMFAEmailCodeForLogin, verifyMFAEmailCodeForLogin, afterStepUpAuthNavigation } from './sagas';
42
42
  import { SHOULD_STEP_UP_KEY } from '../StepUpState/consts';
43
+ import { removeTabTenantFromSessionStorage } from '@frontegg/rest-api/auth';
43
44
 
44
45
  /******************************************************************
45
46
  *** ****
@@ -1333,6 +1334,9 @@ function* logout({
1333
1334
  yield call(api.auth.logout);
1334
1335
  }
1335
1336
  } catch {}
1337
+ if (ContextHolder.isSessionPerTenantEnabled()) {
1338
+ removeTabTenantFromSessionStorage();
1339
+ }
1336
1340
  yield put(actions.resetState());
1337
1341
  yield put(actions.requestAuthorize(true));
1338
1342
  payload == null ? void 0 : payload();
@@ -1344,6 +1348,9 @@ function* silentLogout({
1344
1348
  try {
1345
1349
  yield call(api.auth.logout);
1346
1350
  } catch {}
1351
+ if (ContextHolder.isSessionPerTenantEnabled()) {
1352
+ removeTabTenantFromSessionStorage();
1353
+ }
1347
1354
  setTimeout(() => {
1348
1355
  var _payload$callback3;
1349
1356
  return payload == null ? void 0 : (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload, true);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.181.0
1
+ /** @license Frontegg v6.182.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.
@@ -50,6 +50,7 @@ var _saga5 = require("./saga.utils");
50
50
  var _utils4 = require("../StepUpState/utils");
51
51
  var _sagas = require("./sagas");
52
52
  var _consts2 = require("../StepUpState/consts");
53
+ var _auth = require("@frontegg/rest-api/auth");
53
54
  var _afterAuthNavigation = require("./sagas/afterAuthNavigation.saga");
54
55
  var _mfaWithAuthenticator = require("./sagas/mfaWithAuthenticator.saga");
55
56
  const _excluded = ["callback"],
@@ -1359,6 +1360,9 @@ function* logout({
1359
1360
  yield (0, _effects.call)(_restApi.api.auth.logout);
1360
1361
  }
1361
1362
  } catch {}
1363
+ if (_restApi.ContextHolder.isSessionPerTenantEnabled()) {
1364
+ (0, _auth.removeTabTenantFromSessionStorage)();
1365
+ }
1362
1366
  yield (0, _effects.put)(_reducer.actions.resetState());
1363
1367
  yield (0, _effects.put)(_reducer.actions.requestAuthorize(true));
1364
1368
  payload == null ? void 0 : payload();
@@ -1370,6 +1374,9 @@ function* silentLogout({
1370
1374
  try {
1371
1375
  yield (0, _effects.call)(_restApi.api.auth.logout);
1372
1376
  } catch {}
1377
+ if (_restApi.ContextHolder.isSessionPerTenantEnabled()) {
1378
+ (0, _auth.removeTabTenantFromSessionStorage)();
1379
+ }
1373
1380
  setTimeout(() => {
1374
1381
  var _payload$callback3;
1375
1382
  return payload == null ? void 0 : (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload, true);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.181.0
1
+ /** @license Frontegg v6.182.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,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.181.0",
3
+ "version": "6.182.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
9
  "@frontegg/entitlements-javascript-commons": "1.1.2",
10
- "@frontegg/rest-api": "3.1.63",
10
+ "@frontegg/rest-api": "3.1.64",
11
11
  "@reduxjs/toolkit": "1.8.5",
12
12
  "fast-deep-equal": "3.1.3",
13
13
  "redux-saga": "^1.2.1",