@frontegg/redux-store 7.111.0-alpha.2 → 7.111.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.
@@ -406,23 +406,27 @@ export default ((store, api, sharedActions) => {
406
406
  }, 2000);
407
407
  }
408
408
  } else {
409
- var _ref5;
410
- await ssoPreloginFailed({
411
- email: (_ref5 = email != null ? email : username) != null ? _ref5 : '',
409
+ await ssoPreloginFailed(_extends({}, username ? {
410
+ username
411
+ } : {
412
+ email: email != null ? email : ''
413
+ }, {
412
414
  recaptchaToken,
413
415
  callback,
414
416
  invitationToken
415
- });
417
+ }));
416
418
  }
417
419
  } catch (e) {
418
- var _ref6;
419
- await ssoPreloginFailed({
420
- email: (_ref6 = email != null ? email : username) != null ? _ref6 : '',
420
+ await ssoPreloginFailed(_extends({}, username ? {
421
+ username
422
+ } : {
423
+ email: email != null ? email : ''
424
+ }, {
421
425
  recaptchaToken,
422
426
  callback,
423
427
  invitationToken,
424
428
  error: e
425
- });
429
+ }));
426
430
  }
427
431
  };
428
432
  const postLogin = async payload => {
@@ -1370,11 +1374,11 @@ export default ((store, api, sharedActions) => {
1370
1374
  preserveQueryParams: true
1371
1375
  });
1372
1376
  } else {
1373
- var _ref7;
1377
+ var _ref5;
1374
1378
  if (user.id) {
1375
1379
  localStorage.setItem('userId', user.id);
1376
1380
  }
1377
- const quickLoginToRegister = (_ref7 = localStorage.getItem('register-quick-login')) != null ? _ref7 : loginState.quickLoginToRegister;
1381
+ const quickLoginToRegister = (_ref5 = localStorage.getItem('register-quick-login')) != null ? _ref5 : loginState.quickLoginToRegister;
1378
1382
  const shouldNavigateToRegisterQuickLogin = __shouldNavigateToRegisterQuickLogin(user);
1379
1383
  actions.afterAuthenticationStateUpdate({
1380
1384
  user: updatedUser,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.111.0-alpha.2
1
+ /** @license Frontegg v7.111.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.
@@ -413,23 +413,27 @@ var _default = (store, api, sharedActions) => {
413
413
  }, 2000);
414
414
  }
415
415
  } else {
416
- var _ref5;
417
- await ssoPreloginFailed({
418
- email: (_ref5 = email != null ? email : username) != null ? _ref5 : '',
416
+ await ssoPreloginFailed((0, _extends2.default)({}, username ? {
417
+ username
418
+ } : {
419
+ email: email != null ? email : ''
420
+ }, {
419
421
  recaptchaToken,
420
422
  callback,
421
423
  invitationToken
422
- });
424
+ }));
423
425
  }
424
426
  } catch (e) {
425
- var _ref6;
426
- await ssoPreloginFailed({
427
- email: (_ref6 = email != null ? email : username) != null ? _ref6 : '',
427
+ await ssoPreloginFailed((0, _extends2.default)({}, username ? {
428
+ username
429
+ } : {
430
+ email: email != null ? email : ''
431
+ }, {
428
432
  recaptchaToken,
429
433
  callback,
430
434
  invitationToken,
431
435
  error: e
432
- });
436
+ }));
433
437
  }
434
438
  };
435
439
  const postLogin = async payload => {
@@ -1377,11 +1381,11 @@ var _default = (store, api, sharedActions) => {
1377
1381
  preserveQueryParams: true
1378
1382
  });
1379
1383
  } else {
1380
- var _ref7;
1384
+ var _ref5;
1381
1385
  if (user.id) {
1382
1386
  localStorage.setItem('userId', user.id);
1383
1387
  }
1384
- const quickLoginToRegister = (_ref7 = localStorage.getItem('register-quick-login')) != null ? _ref7 : loginState.quickLoginToRegister;
1388
+ const quickLoginToRegister = (_ref5 = localStorage.getItem('register-quick-login')) != null ? _ref5 : loginState.quickLoginToRegister;
1385
1389
  const shouldNavigateToRegisterQuickLogin = __shouldNavigateToRegisterQuickLogin(user);
1386
1390
  actions.afterAuthenticationStateUpdate({
1387
1391
  user: updatedUser,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.111.0-alpha.2
1
+ /** @license Frontegg v7.111.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,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.111.0-alpha.2",
3
+ "version": "7.111.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
9
  "@frontegg/entitlements-javascript-commons": "1.1.2",
10
- "@frontegg/rest-api": "7.111.0-alpha.2",
10
+ "@frontegg/rest-api": "7.111.0-alpha.4",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",