@frontegg/redux-store 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.
@@ -593,6 +593,13 @@ function* requestHostedLoginAuthorize(additionalParams) {
593
593
  code_challenge_method: 'S256',
594
594
  nonce
595
595
  }, additionalParams);
596
+ if (context.tenantResolver) {
597
+ var _context$tenantResolv;
598
+ const resolvedTenantResult = yield (_context$tenantResolv = context.tenantResolver) == null ? void 0 : _context$tenantResolv.call(context);
599
+ if (resolvedTenantResult != null && resolvedTenantResult.tenant) {
600
+ params['organization'] = resolvedTenantResult.tenant;
601
+ }
602
+ }
596
603
  const searchParams = new URLSearchParams(params);
597
604
  const url = `${oauthUrl}?${searchParams.toString()}`;
598
605
  onRedirectTo(url, {
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.
@@ -610,6 +610,13 @@ function* requestHostedLoginAuthorize(additionalParams) {
610
610
  code_challenge_method: 'S256',
611
611
  nonce
612
612
  }, additionalParams);
613
+ if (context.tenantResolver) {
614
+ var _context$tenantResolv;
615
+ const resolvedTenantResult = yield (_context$tenantResolv = context.tenantResolver) == null ? void 0 : _context$tenantResolv.call(context);
616
+ if (resolvedTenantResult != null && resolvedTenantResult.tenant) {
617
+ params['organization'] = resolvedTenantResult.tenant;
618
+ }
619
+ }
613
620
  const searchParams = new URLSearchParams(params);
614
621
  const url = `${oauthUrl}?${searchParams.toString()}`;
615
622
  onRedirectTo(url, {
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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
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/rest-api": "3.0.84",
9
+ "@frontegg/rest-api": "3.0.85",
10
10
  "@reduxjs/toolkit": "^1.8.5",
11
11
  "redux-saga": "^1.2.1",
12
12
  "uuid": "^8.3.2"