@frontegg/js 6.41.0 → 6.43.0-alpha.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.41.0
1
+ /** @license Frontegg v6.43.0-alpha.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.41.0
1
+ /** @license Frontegg v6.43.0-alpha.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.41.0"
8
+ "cdnVersion": "6.43.0-alpha.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.41.0",
3
+ "version": "6.43.0-alpha.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.41.0"
8
+ "@frontegg/types": "6.43.0-alpha.0"
9
9
  },
10
10
  "browserslist": {
11
11
  "production": [
@@ -1268,7 +1268,7 @@ __webpack_require__.r(__webpack_exports__);
1268
1268
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1269
1269
  /* harmony export */ });
1270
1270
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1271
- "cdnVersion": "6.41.0"
1271
+ "cdnVersion": "6.43.0-alpha.0"
1272
1272
  });
1273
1273
 
1274
1274
  /***/ }),
@@ -4451,7 +4451,10 @@ function* requestAuthorize({
4451
4451
  }));
4452
4452
  }
4453
4453
 
4454
- function* refreshTokenSSR(accessToken) {
4454
+ function* refreshTokenSSR({
4455
+ accessToken,
4456
+ refreshToken
4457
+ }) {
4455
4458
  if (!accessToken) {
4456
4459
  _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setAccessToken(null);
4457
4460
  _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setUser(null);
@@ -4486,7 +4489,9 @@ function* refreshTokenSSR(accessToken) {
4486
4489
  loading: false
4487
4490
  }));
4488
4491
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4489
- user,
4492
+ user: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, user, {
4493
+ refreshToken
4494
+ }),
4490
4495
  isAuthenticated: true
4491
4496
  }));
4492
4497
  }
@@ -4501,7 +4506,7 @@ function* refreshTokenSSR(accessToken) {
4501
4506
  }
4502
4507
 
4503
4508
  function* requestAuthorizeSSR({
4504
- payload: accessToken
4509
+ payload
4505
4510
  }) {
4506
4511
  const calls = [];
4507
4512
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
@@ -4512,7 +4517,7 @@ function* requestAuthorizeSSR({
4512
4517
  calls.push((0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(loadSSOPublicConfigurationFunction));
4513
4518
  calls.push((0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_vendor_saga__WEBPACK_IMPORTED_MODULE_12__.loadVendorPublicInfo));
4514
4519
  calls.push((0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshMetadata));
4515
- calls.push((0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshTokenSSR, accessToken));
4520
+ calls.push((0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshTokenSSR, payload));
4516
4521
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.all)(calls);
4517
4522
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4518
4523
  isLoading: false
@@ -16884,7 +16889,7 @@ __webpack_require__.r(__webpack_exports__);
16884
16889
  /* harmony export */ });
16885
16890
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
16886
16891
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
16887
- /** @license Frontegg v6.41.0
16892
+ /** @license Frontegg v6.43.0-alpha.0
16888
16893
  *
16889
16894
  * This source code is licensed under the MIT license found in the
16890
16895
  * LICENSE file in the root directory of this source tree.