@frontegg/js 6.116.0 → 6.117.0-alpha.1
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 +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +23 -3
- package/umd/frontegg.production.min.js +1 -1
- package/version.js +1 -1
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.117.0-alpha.1",
|
|
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.
|
|
9
|
+
"@frontegg/types": "6.117.0-alpha.1"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1240,7 +1240,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1240
1240
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1241
1241
|
/* harmony export */ });
|
|
1242
1242
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1243
|
-
cdnVersion: '6.
|
|
1243
|
+
cdnVersion: '6.117.0-alpha.1'
|
|
1244
1244
|
});
|
|
1245
1245
|
|
|
1246
1246
|
/***/ }),
|
|
@@ -6134,6 +6134,10 @@ function* requestHostedLoginAuthorize(additionalParams) {
|
|
|
6134
6134
|
params['organization'] = resolvedTenantResult.tenant;
|
|
6135
6135
|
}
|
|
6136
6136
|
}
|
|
6137
|
+
const tenantId = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getSearchParam)(_utils__WEBPACK_IMPORTED_MODULE_9__.TENANT_ID_PARAM_KEY);
|
|
6138
|
+
if (tenantId) {
|
|
6139
|
+
params['tenantId'] = tenantId;
|
|
6140
|
+
}
|
|
6137
6141
|
const searchParams = new URLSearchParams(params);
|
|
6138
6142
|
const url = `${oauthUrl}?${searchParams.toString()}`;
|
|
6139
6143
|
onRedirectTo(url, {
|
|
@@ -6465,11 +6469,13 @@ function* preLogin({
|
|
|
6465
6469
|
onRedirectTo
|
|
6466
6470
|
}
|
|
6467
6471
|
}) => onRedirectTo);
|
|
6472
|
+
const tenantId = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getSearchParam)(_utils__WEBPACK_IMPORTED_MODULE_9__.TENANT_ID_PARAM_KEY);
|
|
6468
6473
|
const {
|
|
6469
6474
|
address,
|
|
6470
6475
|
idpType
|
|
6471
6476
|
} = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_10__.api.auth.preLoginV2, {
|
|
6472
|
-
email
|
|
6477
|
+
email,
|
|
6478
|
+
tenantId
|
|
6473
6479
|
});
|
|
6474
6480
|
if (address) {
|
|
6475
6481
|
let ssoRedirectUrl = address;
|
|
@@ -7480,8 +7486,10 @@ function* loginSagasMock() {
|
|
|
7480
7486
|
"use strict";
|
|
7481
7487
|
__webpack_require__.r(__webpack_exports__);
|
|
7482
7488
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7489
|
+
/* harmony export */ "TENANT_ID_PARAM_KEY": () => (/* binding */ TENANT_ID_PARAM_KEY),
|
|
7483
7490
|
/* harmony export */ "getPathAndSearchParamsFromUrl": () => (/* binding */ getPathAndSearchParamsFromUrl),
|
|
7484
7491
|
/* harmony export */ "getRedirectUrl": () => (/* binding */ getRedirectUrl),
|
|
7492
|
+
/* harmony export */ "getSearchParam": () => (/* binding */ getSearchParam),
|
|
7485
7493
|
/* harmony export */ "getSearchParamsFromUrl": () => (/* binding */ getSearchParamsFromUrl)
|
|
7486
7494
|
/* harmony export */ });
|
|
7487
7495
|
const isAbsoluteUrl = path => {
|
|
@@ -7543,6 +7551,18 @@ const getPathAndSearchParamsFromUrl = url => {
|
|
|
7543
7551
|
return pathname;
|
|
7544
7552
|
};
|
|
7545
7553
|
|
|
7554
|
+
/**
|
|
7555
|
+
*
|
|
7556
|
+
* @param key
|
|
7557
|
+
* @returns the value of the param as string or undefined if it does not exist
|
|
7558
|
+
*/
|
|
7559
|
+
const getSearchParam = key => {
|
|
7560
|
+
const params = new URLSearchParams(window.location.search);
|
|
7561
|
+
const param = params.get(key);
|
|
7562
|
+
return param != null ? param : undefined;
|
|
7563
|
+
};
|
|
7564
|
+
const TENANT_ID_PARAM_KEY = 'tenantId';
|
|
7565
|
+
|
|
7546
7566
|
/***/ }),
|
|
7547
7567
|
|
|
7548
7568
|
/***/ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/allAccountsDialogsState.js":
|
|
@@ -21486,7 +21506,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21486
21506
|
/* harmony export */ });
|
|
21487
21507
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
21488
21508
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
21489
|
-
/** @license Frontegg v6.
|
|
21509
|
+
/** @license Frontegg v6.117.0-alpha.1
|
|
21490
21510
|
*
|
|
21491
21511
|
* This source code is licensed under the MIT license found in the
|
|
21492
21512
|
* LICENSE file in the root directory of this source tree.
|