@frontegg/js 6.202.0 → 6.205.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.
@@ -60,7 +60,7 @@ export declare class FronteggApp {
60
60
  updateMetadata(metadata: FronteggAppOptions['metadata']): void;
61
61
  addOnLoadedListener(listener: () => void): void;
62
62
  ready(listener: () => void): void;
63
- loginWithRedirect(): void;
63
+ loginWithRedirect(additionalParams?: Record<string, any>): void;
64
64
  logout(): void;
65
65
  loadScript(component: string): Promise<unknown>;
66
66
  loadLoginBox(): Promise<void>;
@@ -310,6 +310,7 @@ export var FronteggApp = /*#__PURE__*/function () {
310
310
  }, {
311
311
  key: "loginWithRedirect",
312
312
  value: function loginWithRedirect() {
313
+ var additionalParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
313
314
  this.store.dispatch({
314
315
  type: 'auth/setState',
315
316
  payload: {
@@ -317,7 +318,8 @@ export var FronteggApp = /*#__PURE__*/function () {
317
318
  }
318
319
  });
319
320
  this.store.dispatch({
320
- type: 'auth/requestHostedLoginAuthorize'
321
+ type: 'auth/requestHostedLoginAuthorize',
322
+ payload: additionalParams
321
323
  });
322
324
  }
323
325
  }, {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.202.0
1
+ /** @license Frontegg v6.205.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.
@@ -317,6 +317,7 @@ var FronteggApp = /*#__PURE__*/function () {
317
317
  }, {
318
318
  key: "loginWithRedirect",
319
319
  value: function loginWithRedirect() {
320
+ var additionalParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
320
321
  this.store.dispatch({
321
322
  type: 'auth/setState',
322
323
  payload: {
@@ -324,7 +325,8 @@ var FronteggApp = /*#__PURE__*/function () {
324
325
  }
325
326
  });
326
327
  this.store.dispatch({
327
- type: 'auth/requestHostedLoginAuthorize'
328
+ type: 'auth/requestHostedLoginAuthorize',
329
+ payload: additionalParams
328
330
  });
329
331
  }
330
332
  }, {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.202.0
1
+ /** @license Frontegg v6.205.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.202.0'
8
+ cdnVersion: '6.205.0'
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.202.0",
3
+ "version": "6.205.0",
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.202.0"
9
+ "@frontegg/types": "6.205.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -647,6 +647,7 @@ var FronteggApp = /*#__PURE__*/function () {
647
647
  }, {
648
648
  key: "loginWithRedirect",
649
649
  value: function loginWithRedirect() {
650
+ var additionalParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
650
651
  this.store.dispatch({
651
652
  type: 'auth/setState',
652
653
  payload: {
@@ -654,7 +655,8 @@ var FronteggApp = /*#__PURE__*/function () {
654
655
  }
655
656
  });
656
657
  this.store.dispatch({
657
- type: 'auth/requestHostedLoginAuthorize'
658
+ type: 'auth/requestHostedLoginAuthorize',
659
+ payload: additionalParams
658
660
  });
659
661
  }
660
662
  }, {
@@ -1574,7 +1576,7 @@ __webpack_require__.r(__webpack_exports__);
1574
1576
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1575
1577
  /* harmony export */ });
1576
1578
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1577
- cdnVersion: '6.202.0'
1579
+ cdnVersion: '6.205.0'
1578
1580
  });
1579
1581
 
1580
1582
  /***/ }),
@@ -7332,6 +7334,7 @@ function* preLogin({
7332
7334
  ssoRedirectUrl
7333
7335
  }));
7334
7336
  setTimeout(() => {
7337
+ console.log('Redirecting to SSO - Saga');
7335
7338
  onRedirectTo(ssoRedirectUrl, {
7336
7339
  refresh: true
7337
7340
  });
@@ -26011,7 +26014,7 @@ __webpack_require__.r(__webpack_exports__);
26011
26014
  /* harmony export */ });
26012
26015
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
26013
26016
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
26014
- /** @license Frontegg v6.202.0
26017
+ /** @license Frontegg v6.205.0
26015
26018
  *
26016
26019
  * This source code is licensed under the MIT license found in the
26017
26020
  * LICENSE file in the root directory of this source tree.