@frontegg/redux-store 6.56.0-alpha.0 → 6.56.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.
@@ -1291,12 +1291,19 @@ function* recoverMfa({
1291
1291
  function* logout({
1292
1292
  payload
1293
1293
  }) {
1294
+ const {
1295
+ hostedLoginBox
1296
+ } = yield select(state => state.auth);
1294
1297
  yield put(actions.setState({
1295
1298
  isLoading: true
1296
1299
  }));
1297
1300
 
1298
1301
  try {
1299
- yield call(api.auth.logout);
1302
+ if (hostedLoginBox) {
1303
+ yield call(api.auth.OAuthLogout);
1304
+ } else {
1305
+ yield call(api.auth.logout);
1306
+ }
1300
1307
  } catch {}
1301
1308
 
1302
1309
  yield put(actions.resetState());
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.56.0-alpha.0
1
+ /** @license Frontegg v6.56.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.
@@ -1348,12 +1348,19 @@ function* recoverMfa({
1348
1348
  function* logout({
1349
1349
  payload
1350
1350
  }) {
1351
+ const {
1352
+ hostedLoginBox
1353
+ } = yield (0, _effects.select)(state => state.auth);
1351
1354
  yield (0, _effects.put)(_reducer.actions.setState({
1352
1355
  isLoading: true
1353
1356
  }));
1354
1357
 
1355
1358
  try {
1356
- yield (0, _effects.call)(_restApi.api.auth.logout);
1359
+ if (hostedLoginBox) {
1360
+ yield (0, _effects.call)(_restApi.api.auth.OAuthLogout);
1361
+ } else {
1362
+ yield (0, _effects.call)(_restApi.api.auth.logout);
1363
+ }
1357
1364
  } catch {}
1358
1365
 
1359
1366
  yield (0, _effects.put)(_reducer.actions.resetState());
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.56.0-alpha.0
1
+ /** @license Frontegg v6.56.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,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.56.0-alpha.0",
3
+ "version": "6.56.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
- "@frontegg/rest-api": "^3.0.53",
9
+ "@frontegg/rest-api": "^3.0.54",
10
10
  "@reduxjs/toolkit": "^1.8.5",
11
11
  "redux-saga": "^1.2.1",
12
12
  "uuid": "^8.3.2"