@frontegg/redux-store 7.111.0 → 7.112.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.
@@ -14,7 +14,7 @@ export default ((store, api, sharedActions) => {
14
14
  const __requestHostedLoginSilentAuthorize = async () => {
15
15
  var _response;
16
16
  let response;
17
- if (FronteggNativeModule.isMobileSDK()) {
17
+ if (FronteggNativeModule.isGetTokensAvailable()) {
18
18
  const tokens = await FronteggNativeModule.getTokens();
19
19
  response = await api.auth.silentOAuthRefreshTokenV3(tokens);
20
20
  } else {
@@ -87,7 +87,7 @@ export default ((store, api, sharedActions) => {
87
87
  if (tenantId) {
88
88
  params['tenantId'] = tenantId;
89
89
  }
90
- if (FronteggNativeModule.isMobileSDK()) {
90
+ if (FronteggNativeModule.isAvailable('closeWindow')) {
91
91
  return FronteggNativeModule.closeWindow('not_authorized');
92
92
  }
93
93
  const searchParams = new URLSearchParams(params);
@@ -140,7 +140,7 @@ export default ((store, api, sharedActions) => {
140
140
  additionalParams = additionalParams || {};
141
141
  additionalParams['login_direct_action'] = btoa(JSON.stringify(loginDirectAction));
142
142
  }
143
- if (FronteggNativeModule.isMobileSDK()) {
143
+ if (FronteggNativeModule.isAvailable('requestAuthorize')) {
144
144
  return FronteggNativeModule.requestAuthorize(payload);
145
145
  }
146
146
  if (((_additionalParams = additionalParams) == null ? void 0 : _additionalParams['prompt']) === 'login') {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.111.0
1
+ /** @license Frontegg v7.112.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.
@@ -21,7 +21,7 @@ var _default = (store, api, sharedActions) => {
21
21
  const __requestHostedLoginSilentAuthorize = async () => {
22
22
  var _response;
23
23
  let response;
24
- if (_toolkit.FronteggNativeModule.isMobileSDK()) {
24
+ if (_toolkit.FronteggNativeModule.isGetTokensAvailable()) {
25
25
  const tokens = await _toolkit.FronteggNativeModule.getTokens();
26
26
  response = await api.auth.silentOAuthRefreshTokenV3(tokens);
27
27
  } else {
@@ -94,7 +94,7 @@ var _default = (store, api, sharedActions) => {
94
94
  if (tenantId) {
95
95
  params['tenantId'] = tenantId;
96
96
  }
97
- if (_toolkit.FronteggNativeModule.isMobileSDK()) {
97
+ if (_toolkit.FronteggNativeModule.isAvailable('closeWindow')) {
98
98
  return _toolkit.FronteggNativeModule.closeWindow('not_authorized');
99
99
  }
100
100
  const searchParams = new URLSearchParams(params);
@@ -147,7 +147,7 @@ var _default = (store, api, sharedActions) => {
147
147
  additionalParams = additionalParams || {};
148
148
  additionalParams['login_direct_action'] = btoa(JSON.stringify(loginDirectAction));
149
149
  }
150
- if (_toolkit.FronteggNativeModule.isMobileSDK()) {
150
+ if (_toolkit.FronteggNativeModule.isAvailable('requestAuthorize')) {
151
151
  return _toolkit.FronteggNativeModule.requestAuthorize(payload);
152
152
  }
153
153
  if (((_additionalParams = additionalParams) == null ? void 0 : _additionalParams['prompt']) === 'login') {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.111.0
1
+ /** @license Frontegg v7.112.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": "7.111.0",
3
+ "version": "7.112.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": "7.111.0",
10
+ "@frontegg/rest-api": "7.112.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",