@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.
- package/auth/LoginState/actions/index.js +14 -10
- package/index.js +1 -1
- package/node/auth/LoginState/actions/index.js +14 -10
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -406,23 +406,27 @@ export default ((store, api, sharedActions) => {
|
|
|
406
406
|
}, 2000);
|
|
407
407
|
}
|
|
408
408
|
} else {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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
|
|
1377
|
+
var _ref5;
|
|
1374
1378
|
if (user.id) {
|
|
1375
1379
|
localStorage.setItem('userId', user.id);
|
|
1376
1380
|
}
|
|
1377
|
-
const 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
|
@@ -413,23 +413,27 @@ var _default = (store, api, sharedActions) => {
|
|
|
413
413
|
}, 2000);
|
|
414
414
|
}
|
|
415
415
|
} else {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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
|
|
1384
|
+
var _ref5;
|
|
1381
1385
|
if (user.id) {
|
|
1382
1386
|
localStorage.setItem('userId', user.id);
|
|
1383
1387
|
}
|
|
1384
|
-
const 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
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "7.111.0-alpha.
|
|
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.
|
|
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",
|