@frontegg/js 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.
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.
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/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- "cdnVersion": "6.56.0-alpha.0"
8
+ "cdnVersion": "6.56.0"
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.56.0-alpha.0",
3
+ "version": "6.56.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "@babel/runtime": "^7.18.6",
8
- "@frontegg/types": "6.56.0-alpha.0"
8
+ "@frontegg/types": "6.56.0"
9
9
  },
10
10
  "browserslist": {
11
11
  "production": [
@@ -1315,7 +1315,7 @@ __webpack_require__.r(__webpack_exports__);
1315
1315
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1316
1316
  /* harmony export */ });
1317
1317
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1318
- "cdnVersion": "6.56.0-alpha.0"
1318
+ "cdnVersion": "6.56.0"
1319
1319
  });
1320
1320
 
1321
1321
  /***/ }),
@@ -5517,12 +5517,19 @@ function* recoverMfa({
5517
5517
  function* logout({
5518
5518
  payload
5519
5519
  }) {
5520
+ const {
5521
+ hostedLoginBox
5522
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
5520
5523
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
5521
5524
  isLoading: true
5522
5525
  }));
5523
5526
 
5524
5527
  try {
5525
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.api.auth.logout);
5528
+ if (hostedLoginBox) {
5529
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.api.auth.OAuthLogout);
5530
+ } else {
5531
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.api.auth.logout);
5532
+ }
5526
5533
  } catch {}
5527
5534
 
5528
5535
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.resetState());
@@ -18248,7 +18255,7 @@ __webpack_require__.r(__webpack_exports__);
18248
18255
  /* harmony export */ });
18249
18256
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
18250
18257
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
18251
- /** @license Frontegg v6.56.0-alpha.0
18258
+ /** @license Frontegg v6.56.0
18252
18259
  *
18253
18260
  * This source code is licensed under the MIT license found in the
18254
18261
  * LICENSE file in the root directory of this source tree.
@@ -18444,6 +18451,7 @@ let SocialLoginProviders;
18444
18451
  SocialLoginProviders["Github"] = "github";
18445
18452
  SocialLoginProviders["Slack"] = "slack";
18446
18453
  SocialLoginProviders["Apple"] = "apple";
18454
+ SocialLoginProviders["Linkedin"] = "linkedin";
18447
18455
  })(SocialLoginProviders || (SocialLoginProviders = {}));
18448
18456
 
18449
18457
  let AuthStrategyEnum;
@@ -18468,6 +18476,7 @@ let AuthStrategyEnum;
18468
18476
  __webpack_require__.r(__webpack_exports__);
18469
18477
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18470
18478
  /* harmony export */ "AuthStrategyEnum": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum),
18479
+ /* harmony export */ "OAuthLogout": () => (/* binding */ OAuthLogout),
18471
18480
  /* harmony export */ "SocialLoginProviders": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.SocialLoginProviders),
18472
18481
  /* harmony export */ "acceptInvitation": () => (/* binding */ acceptInvitation),
18473
18482
  /* harmony export */ "activateAccount": () => (/* binding */ activateAccount),
@@ -18730,6 +18739,9 @@ async function refreshTokenV2() {
18730
18739
  async function logout() {
18731
18740
  return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/logout`);
18732
18741
  }
18742
+ async function OAuthLogout(params) {
18743
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.oauth.v1}/logout`, params);
18744
+ }
18733
18745
  async function forgotPassword(body) {
18734
18746
  return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/passwords/reset`, body);
18735
18747
  }
@@ -20074,7 +20086,7 @@ __webpack_require__.r(__webpack_exports__);
20074
20086
  /* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
20075
20087
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
20076
20088
  /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
20077
- /** @license Frontegg v3.0.53
20089
+ /** @license Frontegg v3.0.54
20078
20090
  *
20079
20091
  * This source code is licensed under the MIT license found in the
20080
20092
  * LICENSE file in the root directory of this source tree.