@frontegg/redux-store 7.105.0-alpha.0 → 7.105.0-alpha.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.
@@ -26,7 +26,7 @@ import { LoginFlow, LoginStep } from '../interfaces';
26
26
  import { base64urlDecode, deepResetState, delay, errorHandler, errorTraceId, GTMEventAction, publicKeyCredentialToJSON, reportGTMEvent, retryIfNeeded, withRetryConfig } from '../../../helpers';
27
27
  import { initialState } from '../state';
28
28
  import { getSearchParam, isEmailPayload, isUsernamePayload, shouldShowPasswordRotationPromptFunc, TENANT_ID_PARAM_KEY } from '../helpers';
29
- import { AuthStrategyEnum, ContextHolder, FeatureFlags, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, WebAuthnDeviceType } from '@frontegg/rest-api';
29
+ import { AuthStrategyEnum, ContextHolder, FeatureFlags, removeTabTenantFromSessionStorage, WebAuthnDeviceType } from '@frontegg/rest-api';
30
30
  import hostedLoginAuthorizeActions from './hostedLoginAuthorize.actions';
31
31
  import { FronteggNativeModule, isEntitlementsDeeplyEqual } from '../../../toolkit';
32
32
  import { REQUEST_NAME, UserVerifiedOriginTypes } from '../../interfaces';
@@ -51,13 +51,10 @@ export default ((store, api, sharedActions) => {
51
51
  return;
52
52
  }
53
53
  try {
54
- const tabTenantId = getTabTenantFromSessionStorage(store.root.appName);
55
- const body = _extends({
54
+ const body = {
56
55
  grant_type: 'refresh_token',
57
56
  refresh_token: user == null ? void 0 : user.refreshToken
58
- }, tabTenantId && {
59
- tenantId: tabTenantId
60
- });
57
+ };
61
58
  const response = await api.auth.exchangeOAuthTokensV2(body);
62
59
  const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
63
60
  actions.afterAuthenticationStateUpdate(_extends({}, response, {
@@ -1315,13 +1312,10 @@ export default ((store, api, sharedActions) => {
1315
1312
  return;
1316
1313
  }
1317
1314
  try {
1318
- const tabTenantId = getTabTenantFromSessionStorage(store.root.appName);
1319
- const body = _extends({
1315
+ const body = {
1320
1316
  grant_type: 'refresh_token',
1321
1317
  refresh_token: currentUser == null ? void 0 : currentUser.refreshToken
1322
- }, tabTenantId && {
1323
- tenantId: tabTenantId
1324
- });
1318
+ };
1325
1319
  const response = await api.auth.exchangeOAuthTokensV2(body);
1326
1320
  const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
1327
1321
  actions.afterAuthenticationStateUpdate(_extends({}, response, {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.105.0-alpha.0
1
+ /** @license Frontegg v7.105.0-alpha.1
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.
@@ -58,13 +58,10 @@ var _default = (store, api, sharedActions) => {
58
58
  return;
59
59
  }
60
60
  try {
61
- const tabTenantId = (0, _restApi.getTabTenantFromSessionStorage)(store.root.appName);
62
- const body = (0, _extends2.default)({
61
+ const body = {
63
62
  grant_type: 'refresh_token',
64
63
  refresh_token: user == null ? void 0 : user.refreshToken
65
- }, tabTenantId && {
66
- tenantId: tabTenantId
67
- });
64
+ };
68
65
  const response = await api.auth.exchangeOAuthTokensV2(body);
69
66
  const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
70
67
  actions.afterAuthenticationStateUpdate((0, _extends2.default)({}, response, {
@@ -1322,13 +1319,10 @@ var _default = (store, api, sharedActions) => {
1322
1319
  return;
1323
1320
  }
1324
1321
  try {
1325
- const tabTenantId = (0, _restApi.getTabTenantFromSessionStorage)(store.root.appName);
1326
- const body = (0, _extends2.default)({
1322
+ const body = {
1327
1323
  grant_type: 'refresh_token',
1328
1324
  refresh_token: currentUser == null ? void 0 : currentUser.refreshToken
1329
- }, tabTenantId && {
1330
- tenantId: tabTenantId
1331
- });
1325
+ };
1332
1326
  const response = await api.auth.exchangeOAuthTokensV2(body);
1333
1327
  const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
1334
1328
  actions.afterAuthenticationStateUpdate((0, _extends2.default)({}, response, {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.105.0-alpha.0
1
+ /** @license Frontegg v7.105.0-alpha.1
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": "7.105.0-alpha.0",
3
+ "version": "7.105.0-alpha.1",
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": "7.105.0-alpha.0",
10
+ "@frontegg/rest-api": "7.105.0-alpha.1",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",