@frontegg/js 6.201.0-alpha.2 → 6.201.0-alpha.3

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.201.0-alpha.2
1
+ /** @license Frontegg v6.201.0-alpha.3
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.201.0-alpha.2
1
+ /** @license Frontegg v6.201.0-alpha.3
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.201.0-alpha.2'
8
+ cdnVersion: '6.201.0-alpha.3'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.201.0-alpha.2",
3
+ "version": "6.201.0-alpha.3",
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/types": "6.201.0-alpha.2"
9
+ "@frontegg/types": "6.201.0-alpha.3"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1574,7 +1574,7 @@ __webpack_require__.r(__webpack_exports__);
1574
1574
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1575
1575
  /* harmony export */ });
1576
1576
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1577
- cdnVersion: '6.201.0-alpha.2'
1577
+ cdnVersion: '6.201.0-alpha.3'
1578
1578
  });
1579
1579
 
1580
1580
  /***/ }),
@@ -6921,7 +6921,6 @@ function* refreshOrRequestHostedLoginAuthorizeV2({
6921
6921
  }
6922
6922
  }
6923
6923
  function* requestHostedLoginAuthorize(additionalParams) {
6924
- var _ContextHolder$getBas;
6925
6924
  const {
6926
6925
  routes,
6927
6926
  context,
@@ -6948,7 +6947,8 @@ function* requestHostedLoginAuthorize(additionalParams) {
6948
6947
 
6949
6948
  // We are saving the verifier in session storage to be able to validate the response
6950
6949
  localStorage.setItem(_constants__WEBPACK_IMPORTED_MODULE_18__.HOSTED_LOGIN_VERIFIER_KEY, code_verifier);
6951
- let redirectUrl = `${window.location.origin}${urlStrategy === 'path' ? '' : '#'}${(_ContextHolder$getBas = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.ContextHolder.getBasename()) != null ? _ContextHolder$getBas : ''}${routes.hostedLoginRedirectUrl}`;
6950
+ const basename = (0,_utils__WEBPACK_IMPORTED_MODULE_8__.getBaseNameWithoutSlashSuffix)();
6951
+ let redirectUrl = `${window.location.origin}${urlStrategy === 'path' ? '' : '#'}${basename != null ? basename : ''}${routes.hostedLoginRedirectUrl}`;
6952
6952
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_CustomLoginState_saga__WEBPACK_IMPORTED_MODULE_15__.loadCustomLoginRoutes);
6953
6953
  const customLoginSearchParam = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => {
6954
6954
  var _state$auth$customLog;
@@ -26011,7 +26011,7 @@ __webpack_require__.r(__webpack_exports__);
26011
26011
  /* harmony export */ });
26012
26012
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
26013
26013
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
26014
- /** @license Frontegg v6.201.0-alpha.2
26014
+ /** @license Frontegg v6.201.0-alpha.3
26015
26015
  *
26016
26016
  * This source code is licensed under the MIT license found in the
26017
26017
  * LICENSE file in the root directory of this source tree.