@frontegg/js 6.75.0-alpha.3 → 6.75.0-alpha.4

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.75.0-alpha.3
1
+ /** @license Frontegg v6.75.0-alpha.4
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.75.0-alpha.3
1
+ /** @license Frontegg v6.75.0-alpha.4
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.75.0-alpha.3"
8
+ "cdnVersion": "6.75.0-alpha.4"
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.75.0-alpha.3",
3
+ "version": "6.75.0-alpha.4",
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.75.0-alpha.3"
9
+ "@frontegg/types": "6.75.0-alpha.4"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1177,7 +1177,7 @@ __webpack_require__.r(__webpack_exports__);
1177
1177
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1178
1178
  /* harmony export */ });
1179
1179
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1180
- "cdnVersion": "6.75.0-alpha.3"
1180
+ "cdnVersion": "6.75.0-alpha.4"
1181
1181
  });
1182
1182
 
1183
1183
  /***/ }),
@@ -5506,6 +5506,13 @@ function* requestHostedLoginAuthorize(additionalParams) {
5506
5506
  code_challenge_method: 'S256',
5507
5507
  nonce
5508
5508
  }, additionalParams);
5509
+ if (context.tenantResolver) {
5510
+ var _context$tenantResolv;
5511
+ const resolvedTenantResult = yield (_context$tenantResolv = context.tenantResolver) == null ? void 0 : _context$tenantResolv.call(context);
5512
+ if (resolvedTenantResult != null && resolvedTenantResult.tenant) {
5513
+ params['organization'] = resolvedTenantResult.tenant;
5514
+ }
5515
+ }
5509
5516
  const searchParams = new URLSearchParams(params);
5510
5517
  const url = `${oauthUrl}?${searchParams.toString()}`;
5511
5518
  onRedirectTo(url, {
@@ -18631,7 +18638,7 @@ __webpack_require__.r(__webpack_exports__);
18631
18638
  /* harmony export */ });
18632
18639
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
18633
18640
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
18634
- /** @license Frontegg v6.75.0-alpha.3
18641
+ /** @license Frontegg v6.75.0-alpha.4
18635
18642
  *
18636
18643
  * This source code is licensed under the MIT license found in the
18637
18644
  * LICENSE file in the root directory of this source tree.
@@ -20400,6 +20407,17 @@ async function getAdditionalHeaders(context) {
20400
20407
  output = await context.additionalHeadersResolver();
20401
20408
  }
20402
20409
 
20410
+ if (context.tenantResolver) {
20411
+ const resolvedTenantResult = await context.tenantResolver();
20412
+
20413
+ if (!!(resolvedTenantResult != null && resolvedTenantResult.tenant)) {
20414
+ output.push({
20415
+ key: 'frontegg-login-alias',
20416
+ value: resolvedTenantResult.tenant
20417
+ });
20418
+ }
20419
+ }
20420
+
20403
20421
  return output;
20404
20422
  }
20405
20423
 
@@ -20691,7 +20709,7 @@ __webpack_require__.r(__webpack_exports__);
20691
20709
  /* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
20692
20710
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
20693
20711
  /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
20694
- /** @license Frontegg v3.0.84
20712
+ /** @license Frontegg v3.0.85
20695
20713
  *
20696
20714
  * This source code is licensed under the MIT license found in the
20697
20715
  * LICENSE file in the root directory of this source tree.