@frontegg/redux-store 6.90.0-alpha.1 → 6.90.0-alpha.2
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/saga.js +64 -63
- package/index.js +1 -1
- package/node/auth/LoginState/saga.js +64 -63
- package/node/index.js +1 -1
- package/package.json +1 -1
package/auth/LoginState/saga.js
CHANGED
|
@@ -465,20 +465,21 @@ function* getUserIP({
|
|
|
465
465
|
}
|
|
466
466
|
function* loadCustomLoginRoutes() {
|
|
467
467
|
try {
|
|
468
|
-
var _ContextHolder$getCon3;
|
|
469
|
-
if ((_ContextHolder$getCon3 = ContextHolder.getContext()) != null && _ContextHolder$getCon3.tenantResolver) {
|
|
468
|
+
var _ContextHolder$getCon3, _ContextHolder$getCon4;
|
|
469
|
+
if ((_ContextHolder$getCon3 = ContextHolder.getContext()) != null && (_ContextHolder$getCon4 = _ContextHolder$getCon3.tenantResolver) != null && _ContextHolder$getCon4.call(_ContextHolder$getCon3)) {
|
|
470
470
|
const {
|
|
471
471
|
routes
|
|
472
472
|
} = yield select(state => state.auth);
|
|
473
473
|
const {
|
|
474
|
-
applicationUrl,
|
|
475
|
-
loginUrl
|
|
474
|
+
applicationUrl: customLoginAuthenticatedUrl,
|
|
475
|
+
loginUrl: customLoginUrl
|
|
476
476
|
} = yield call(getPublicSettings);
|
|
477
|
-
if (
|
|
477
|
+
if (customLoginAuthenticatedUrl && customLoginUrl) {
|
|
478
|
+
var _ref4;
|
|
478
479
|
yield put(actions.setState({
|
|
479
480
|
routes: _extends({}, routes, {
|
|
480
|
-
customLoginAuthenticatedUrl
|
|
481
|
-
customLoginUrl: loginUrl
|
|
481
|
+
customLoginAuthenticatedUrl,
|
|
482
|
+
customLoginUrl: (_ref4 = routes.loginUrl + getSearchParamsFromUrl(customLoginUrl)) != null ? _ref4 : ''
|
|
482
483
|
})
|
|
483
484
|
}));
|
|
484
485
|
}
|
|
@@ -590,8 +591,8 @@ function* refreshOrRequestHostedLoginAuthorize({
|
|
|
590
591
|
}
|
|
591
592
|
function* getCustomLoginSearchParam() {
|
|
592
593
|
try {
|
|
593
|
-
var _ContextHolder$
|
|
594
|
-
if ((_ContextHolder$
|
|
594
|
+
var _ContextHolder$getCon5, _ContextHolder$getCon6;
|
|
595
|
+
if ((_ContextHolder$getCon5 = ContextHolder.getContext()) != null && (_ContextHolder$getCon6 = _ContextHolder$getCon5.tenantResolver) != null && _ContextHolder$getCon6.call(_ContextHolder$getCon5)) {
|
|
595
596
|
yield call(loadCustomLoginRoutes);
|
|
596
597
|
const customLoginAuthenticatedUrl = yield select(state => state.auth.routes.customLoginAuthenticatedUrl);
|
|
597
598
|
if (customLoginAuthenticatedUrl) {
|
|
@@ -702,13 +703,13 @@ function* handleHostedLoginCallback({
|
|
|
702
703
|
yield afterAuthNavigation();
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
|
-
function* changePhoneNumberWithVerification(
|
|
706
|
+
function* changePhoneNumberWithVerification(_ref5) {
|
|
706
707
|
let {
|
|
707
708
|
payload: {
|
|
708
709
|
callback
|
|
709
710
|
}
|
|
710
|
-
} =
|
|
711
|
-
payload = _objectWithoutPropertiesLoose(
|
|
711
|
+
} = _ref5,
|
|
712
|
+
payload = _objectWithoutPropertiesLoose(_ref5.payload, _excluded);
|
|
712
713
|
try {
|
|
713
714
|
yield put(actions.setLoginState({
|
|
714
715
|
loading: true
|
|
@@ -729,13 +730,13 @@ function* changePhoneNumberWithVerification(_ref4) {
|
|
|
729
730
|
}));
|
|
730
731
|
}
|
|
731
732
|
}
|
|
732
|
-
function* verifyChangePhoneNumber(
|
|
733
|
+
function* verifyChangePhoneNumber(_ref6) {
|
|
733
734
|
let {
|
|
734
735
|
payload: {
|
|
735
736
|
callback
|
|
736
737
|
}
|
|
737
|
-
} =
|
|
738
|
-
payload = _objectWithoutPropertiesLoose(
|
|
738
|
+
} = _ref6,
|
|
739
|
+
payload = _objectWithoutPropertiesLoose(_ref6.payload, _excluded2);
|
|
739
740
|
try {
|
|
740
741
|
yield put(actions.setLoginState({
|
|
741
742
|
loading: true
|
|
@@ -752,13 +753,13 @@ function* verifyChangePhoneNumber(_ref5) {
|
|
|
752
753
|
}));
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
|
-
function* quickSmsPasswordlessPreLogin(
|
|
756
|
+
function* quickSmsPasswordlessPreLogin(_ref7) {
|
|
756
757
|
let {
|
|
757
758
|
payload: {
|
|
758
759
|
callback
|
|
759
760
|
}
|
|
760
|
-
} =
|
|
761
|
-
payload = _objectWithoutPropertiesLoose(
|
|
761
|
+
} = _ref7,
|
|
762
|
+
payload = _objectWithoutPropertiesLoose(_ref7.payload, _excluded3);
|
|
762
763
|
try {
|
|
763
764
|
yield put(actions.setLoginState({
|
|
764
765
|
loading: true
|
|
@@ -784,13 +785,13 @@ function* quickSmsPasswordlessPreLogin(_ref6) {
|
|
|
784
785
|
callback == null ? void 0 : callback(e);
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
|
-
function* passwordlessPreLogin(
|
|
788
|
+
function* passwordlessPreLogin(_ref8) {
|
|
788
789
|
let {
|
|
789
790
|
payload: {
|
|
790
791
|
callback
|
|
791
792
|
}
|
|
792
|
-
} =
|
|
793
|
-
payload = _objectWithoutPropertiesLoose(
|
|
793
|
+
} = _ref8,
|
|
794
|
+
payload = _objectWithoutPropertiesLoose(_ref8.payload, _excluded4);
|
|
794
795
|
try {
|
|
795
796
|
const {
|
|
796
797
|
onRedirectTo,
|
|
@@ -860,14 +861,14 @@ export function* shouldShowPromptPasskeys() {
|
|
|
860
861
|
return numOfDevices === 0;
|
|
861
862
|
}
|
|
862
863
|
}
|
|
863
|
-
function* passwordlessPostLogin(
|
|
864
|
+
function* passwordlessPostLogin(_ref9) {
|
|
864
865
|
let {
|
|
865
866
|
payload: {
|
|
866
867
|
callback,
|
|
867
868
|
events
|
|
868
869
|
}
|
|
869
|
-
} =
|
|
870
|
-
payload = _objectWithoutPropertiesLoose(
|
|
870
|
+
} = _ref9,
|
|
871
|
+
payload = _objectWithoutPropertiesLoose(_ref9.payload, _excluded5);
|
|
871
872
|
try {
|
|
872
873
|
yield put(actions.setLoginState({
|
|
873
874
|
loading: true
|
|
@@ -1038,11 +1039,11 @@ function* preLogin({
|
|
|
1038
1039
|
});
|
|
1039
1040
|
}
|
|
1040
1041
|
}
|
|
1041
|
-
function* ssoPreloginFailed(
|
|
1042
|
+
function* ssoPreloginFailed(_ref10) {
|
|
1042
1043
|
let {
|
|
1043
1044
|
callback
|
|
1044
|
-
} =
|
|
1045
|
-
body = _objectWithoutPropertiesLoose(
|
|
1045
|
+
} = _ref10,
|
|
1046
|
+
body = _objectWithoutPropertiesLoose(_ref10, _excluded6);
|
|
1046
1047
|
const publicPolicy = yield select(({
|
|
1047
1048
|
auth: {
|
|
1048
1049
|
securityPolicyState: {
|
|
@@ -1106,13 +1107,13 @@ function* webAuthnCreateNewDeviceSession({
|
|
|
1106
1107
|
}));
|
|
1107
1108
|
}
|
|
1108
1109
|
}
|
|
1109
|
-
function* webAuthnVerifyNewDeviceSession(
|
|
1110
|
+
function* webAuthnVerifyNewDeviceSession(_ref11) {
|
|
1110
1111
|
let {
|
|
1111
1112
|
payload: {
|
|
1112
1113
|
callback
|
|
1113
1114
|
}
|
|
1114
|
-
} =
|
|
1115
|
-
body = _objectWithoutPropertiesLoose(
|
|
1115
|
+
} = _ref11,
|
|
1116
|
+
body = _objectWithoutPropertiesLoose(_ref11.payload, _excluded7);
|
|
1116
1117
|
try {
|
|
1117
1118
|
yield put(actions.setLoginState({
|
|
1118
1119
|
loading: true
|
|
@@ -1136,13 +1137,13 @@ function* webAuthnVerifyNewDeviceSession(_ref10) {
|
|
|
1136
1137
|
}));
|
|
1137
1138
|
}
|
|
1138
1139
|
}
|
|
1139
|
-
function* webAuthnPrelogin(
|
|
1140
|
+
function* webAuthnPrelogin(_ref12) {
|
|
1140
1141
|
let {
|
|
1141
1142
|
payload: {
|
|
1142
1143
|
callback
|
|
1143
1144
|
}
|
|
1144
|
-
} =
|
|
1145
|
-
body = _objectWithoutPropertiesLoose(
|
|
1145
|
+
} = _ref12,
|
|
1146
|
+
body = _objectWithoutPropertiesLoose(_ref12.payload, _excluded8);
|
|
1146
1147
|
try {
|
|
1147
1148
|
var _options$allowCredent;
|
|
1148
1149
|
yield put(actions.setPasskeysState({
|
|
@@ -1176,13 +1177,13 @@ function* webAuthnPrelogin(_ref11) {
|
|
|
1176
1177
|
}));
|
|
1177
1178
|
}
|
|
1178
1179
|
}
|
|
1179
|
-
function* webAuthnPostLogin(
|
|
1180
|
+
function* webAuthnPostLogin(_ref13) {
|
|
1180
1181
|
let {
|
|
1181
1182
|
payload: {
|
|
1182
1183
|
callback
|
|
1183
1184
|
}
|
|
1184
|
-
} =
|
|
1185
|
-
body = _objectWithoutPropertiesLoose(
|
|
1185
|
+
} = _ref13,
|
|
1186
|
+
body = _objectWithoutPropertiesLoose(_ref13.payload, _excluded9);
|
|
1186
1187
|
try {
|
|
1187
1188
|
var _publicKey$response$u;
|
|
1188
1189
|
yield put(actions.setPasskeysState({
|
|
@@ -1541,13 +1542,13 @@ function* handleVerifyMFAResponse({
|
|
|
1541
1542
|
isAuthenticated: true
|
|
1542
1543
|
}));
|
|
1543
1544
|
}
|
|
1544
|
-
function* preEnrollMFASMSForLogin(
|
|
1545
|
+
function* preEnrollMFASMSForLogin(_ref14) {
|
|
1545
1546
|
let {
|
|
1546
1547
|
payload: {
|
|
1547
1548
|
callback
|
|
1548
1549
|
}
|
|
1549
|
-
} =
|
|
1550
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1550
|
+
} = _ref14,
|
|
1551
|
+
payload = _objectWithoutPropertiesLoose(_ref14.payload, _excluded10);
|
|
1551
1552
|
yield put(actions.setLoginState({
|
|
1552
1553
|
loading: true
|
|
1553
1554
|
}));
|
|
@@ -1570,13 +1571,13 @@ function* preEnrollMFASMSForLogin(_ref13) {
|
|
|
1570
1571
|
callback == null ? void 0 : callback(null);
|
|
1571
1572
|
}
|
|
1572
1573
|
}
|
|
1573
|
-
function* enrollMFASMSForLogin(
|
|
1574
|
+
function* enrollMFASMSForLogin(_ref15) {
|
|
1574
1575
|
let {
|
|
1575
1576
|
payload: {
|
|
1576
1577
|
callback
|
|
1577
1578
|
}
|
|
1578
|
-
} =
|
|
1579
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1579
|
+
} = _ref15,
|
|
1580
|
+
payload = _objectWithoutPropertiesLoose(_ref15.payload, _excluded11);
|
|
1580
1581
|
yield put(actions.setLoginState({
|
|
1581
1582
|
loading: true
|
|
1582
1583
|
}));
|
|
@@ -1596,13 +1597,13 @@ function* enrollMFASMSForLogin(_ref14) {
|
|
|
1596
1597
|
callback == null ? void 0 : callback(null);
|
|
1597
1598
|
}
|
|
1598
1599
|
}
|
|
1599
|
-
function* preEnrollMFAWebAuthnForLogin(
|
|
1600
|
+
function* preEnrollMFAWebAuthnForLogin(_ref16) {
|
|
1600
1601
|
let {
|
|
1601
1602
|
payload: {
|
|
1602
1603
|
callback
|
|
1603
1604
|
}
|
|
1604
|
-
} =
|
|
1605
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1605
|
+
} = _ref16,
|
|
1606
|
+
payload = _objectWithoutPropertiesLoose(_ref16.payload, _excluded12);
|
|
1606
1607
|
yield put(actions.setLoginState({
|
|
1607
1608
|
loading: true
|
|
1608
1609
|
}));
|
|
@@ -1633,13 +1634,13 @@ function* preEnrollMFAWebAuthnForLogin(_ref15) {
|
|
|
1633
1634
|
callback == null ? void 0 : callback(null);
|
|
1634
1635
|
}
|
|
1635
1636
|
}
|
|
1636
|
-
function* enrollMFAWebAuthnForLogin(
|
|
1637
|
+
function* enrollMFAWebAuthnForLogin(_ref17) {
|
|
1637
1638
|
let {
|
|
1638
1639
|
payload: {
|
|
1639
1640
|
callback
|
|
1640
1641
|
}
|
|
1641
|
-
} =
|
|
1642
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1642
|
+
} = _ref17,
|
|
1643
|
+
payload = _objectWithoutPropertiesLoose(_ref17.payload, _excluded13);
|
|
1643
1644
|
yield put(actions.setLoginState({
|
|
1644
1645
|
loading: true
|
|
1645
1646
|
}));
|
|
@@ -1662,13 +1663,13 @@ function* enrollMFAWebAuthnForLogin(_ref16) {
|
|
|
1662
1663
|
callback == null ? void 0 : callback(null);
|
|
1663
1664
|
}
|
|
1664
1665
|
}
|
|
1665
|
-
function* enrollMFAAuthenticatorAppForLogin(
|
|
1666
|
+
function* enrollMFAAuthenticatorAppForLogin(_ref18) {
|
|
1666
1667
|
let {
|
|
1667
1668
|
payload: {
|
|
1668
1669
|
callback
|
|
1669
1670
|
}
|
|
1670
|
-
} =
|
|
1671
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1671
|
+
} = _ref18,
|
|
1672
|
+
payload = _objectWithoutPropertiesLoose(_ref18.payload, _excluded14);
|
|
1672
1673
|
yield put(actions.setLoginState({
|
|
1673
1674
|
loading: true
|
|
1674
1675
|
}));
|
|
@@ -1688,14 +1689,14 @@ function* enrollMFAAuthenticatorAppForLogin(_ref17) {
|
|
|
1688
1689
|
callback == null ? void 0 : callback(null);
|
|
1689
1690
|
}
|
|
1690
1691
|
}
|
|
1691
|
-
function* preVerifyMFASMSForLogin(
|
|
1692
|
+
function* preVerifyMFASMSForLogin(_ref19) {
|
|
1692
1693
|
let {
|
|
1693
1694
|
payload: {
|
|
1694
1695
|
callback,
|
|
1695
1696
|
deviceId
|
|
1696
1697
|
}
|
|
1697
|
-
} =
|
|
1698
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1698
|
+
} = _ref19,
|
|
1699
|
+
payload = _objectWithoutPropertiesLoose(_ref19.payload, _excluded15);
|
|
1699
1700
|
yield put(actions.setLoginState({
|
|
1700
1701
|
loading: true
|
|
1701
1702
|
}));
|
|
@@ -1718,14 +1719,14 @@ function* preVerifyMFASMSForLogin(_ref18) {
|
|
|
1718
1719
|
callback == null ? void 0 : callback(null);
|
|
1719
1720
|
}
|
|
1720
1721
|
}
|
|
1721
|
-
function* verifyMFASMSForLogin(
|
|
1722
|
+
function* verifyMFASMSForLogin(_ref20) {
|
|
1722
1723
|
let {
|
|
1723
1724
|
payload: {
|
|
1724
1725
|
callback,
|
|
1725
1726
|
deviceId
|
|
1726
1727
|
}
|
|
1727
|
-
} =
|
|
1728
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1728
|
+
} = _ref20,
|
|
1729
|
+
payload = _objectWithoutPropertiesLoose(_ref20.payload, _excluded16);
|
|
1729
1730
|
yield put(actions.setLoginState({
|
|
1730
1731
|
loading: true
|
|
1731
1732
|
}));
|
|
@@ -1745,14 +1746,14 @@ function* verifyMFASMSForLogin(_ref19) {
|
|
|
1745
1746
|
callback == null ? void 0 : callback(null);
|
|
1746
1747
|
}
|
|
1747
1748
|
}
|
|
1748
|
-
function* preVerifyMFAWebAuthnForLogin(
|
|
1749
|
+
function* preVerifyMFAWebAuthnForLogin(_ref21) {
|
|
1749
1750
|
let {
|
|
1750
1751
|
payload: {
|
|
1751
1752
|
callback,
|
|
1752
1753
|
deviceId
|
|
1753
1754
|
}
|
|
1754
|
-
} =
|
|
1755
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1755
|
+
} = _ref21,
|
|
1756
|
+
payload = _objectWithoutPropertiesLoose(_ref21.payload, _excluded17);
|
|
1756
1757
|
yield put(actions.setLoginState({
|
|
1757
1758
|
loading: true
|
|
1758
1759
|
}));
|
|
@@ -1780,14 +1781,14 @@ function* preVerifyMFAWebAuthnForLogin(_ref20) {
|
|
|
1780
1781
|
callback == null ? void 0 : callback(null);
|
|
1781
1782
|
}
|
|
1782
1783
|
}
|
|
1783
|
-
function* verifyMFAWebAuthnForLogin(
|
|
1784
|
+
function* verifyMFAWebAuthnForLogin(_ref22) {
|
|
1784
1785
|
let {
|
|
1785
1786
|
payload: {
|
|
1786
1787
|
callback,
|
|
1787
1788
|
deviceId
|
|
1788
1789
|
}
|
|
1789
|
-
} =
|
|
1790
|
-
payload = _objectWithoutPropertiesLoose(
|
|
1790
|
+
} = _ref22,
|
|
1791
|
+
payload = _objectWithoutPropertiesLoose(_ref22.payload, _excluded18);
|
|
1791
1792
|
yield put(actions.setLoginState({
|
|
1792
1793
|
loading: true
|
|
1793
1794
|
}));
|
package/index.js
CHANGED
|
@@ -482,20 +482,21 @@ function* getUserIP({
|
|
|
482
482
|
}
|
|
483
483
|
function* loadCustomLoginRoutes() {
|
|
484
484
|
try {
|
|
485
|
-
var _ContextHolder$getCon3;
|
|
486
|
-
if ((_ContextHolder$getCon3 = _restApi.ContextHolder.getContext()) != null && _ContextHolder$getCon3.tenantResolver) {
|
|
485
|
+
var _ContextHolder$getCon3, _ContextHolder$getCon4;
|
|
486
|
+
if ((_ContextHolder$getCon3 = _restApi.ContextHolder.getContext()) != null && (_ContextHolder$getCon4 = _ContextHolder$getCon3.tenantResolver) != null && _ContextHolder$getCon4.call(_ContextHolder$getCon3)) {
|
|
487
487
|
const {
|
|
488
488
|
routes
|
|
489
489
|
} = yield (0, _effects.select)(state => state.auth);
|
|
490
490
|
const {
|
|
491
|
-
applicationUrl,
|
|
492
|
-
loginUrl
|
|
491
|
+
applicationUrl: customLoginAuthenticatedUrl,
|
|
492
|
+
loginUrl: customLoginUrl
|
|
493
493
|
} = yield (0, _effects.call)(_accountSettings.getPublicSettings);
|
|
494
|
-
if (
|
|
494
|
+
if (customLoginAuthenticatedUrl && customLoginUrl) {
|
|
495
|
+
var _ref4;
|
|
495
496
|
yield (0, _effects.put)(_reducer.actions.setState({
|
|
496
497
|
routes: (0, _extends2.default)({}, routes, {
|
|
497
|
-
customLoginAuthenticatedUrl
|
|
498
|
-
customLoginUrl: loginUrl
|
|
498
|
+
customLoginAuthenticatedUrl,
|
|
499
|
+
customLoginUrl: (_ref4 = routes.loginUrl + (0, _utils2.getSearchParamsFromUrl)(customLoginUrl)) != null ? _ref4 : ''
|
|
499
500
|
})
|
|
500
501
|
}));
|
|
501
502
|
}
|
|
@@ -607,8 +608,8 @@ function* refreshOrRequestHostedLoginAuthorize({
|
|
|
607
608
|
}
|
|
608
609
|
function* getCustomLoginSearchParam() {
|
|
609
610
|
try {
|
|
610
|
-
var _ContextHolder$
|
|
611
|
-
if ((_ContextHolder$
|
|
611
|
+
var _ContextHolder$getCon5, _ContextHolder$getCon6;
|
|
612
|
+
if ((_ContextHolder$getCon5 = _restApi.ContextHolder.getContext()) != null && (_ContextHolder$getCon6 = _ContextHolder$getCon5.tenantResolver) != null && _ContextHolder$getCon6.call(_ContextHolder$getCon5)) {
|
|
612
613
|
yield (0, _effects.call)(loadCustomLoginRoutes);
|
|
613
614
|
const customLoginAuthenticatedUrl = yield (0, _effects.select)(state => state.auth.routes.customLoginAuthenticatedUrl);
|
|
614
615
|
if (customLoginAuthenticatedUrl) {
|
|
@@ -719,13 +720,13 @@ function* handleHostedLoginCallback({
|
|
|
719
720
|
yield afterAuthNavigation();
|
|
720
721
|
}
|
|
721
722
|
}
|
|
722
|
-
function* changePhoneNumberWithVerification(
|
|
723
|
+
function* changePhoneNumberWithVerification(_ref5) {
|
|
723
724
|
let {
|
|
724
725
|
payload: {
|
|
725
726
|
callback
|
|
726
727
|
}
|
|
727
|
-
} =
|
|
728
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
728
|
+
} = _ref5,
|
|
729
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref5.payload, _excluded);
|
|
729
730
|
try {
|
|
730
731
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
731
732
|
loading: true
|
|
@@ -746,13 +747,13 @@ function* changePhoneNumberWithVerification(_ref4) {
|
|
|
746
747
|
}));
|
|
747
748
|
}
|
|
748
749
|
}
|
|
749
|
-
function* verifyChangePhoneNumber(
|
|
750
|
+
function* verifyChangePhoneNumber(_ref6) {
|
|
750
751
|
let {
|
|
751
752
|
payload: {
|
|
752
753
|
callback
|
|
753
754
|
}
|
|
754
|
-
} =
|
|
755
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
755
|
+
} = _ref6,
|
|
756
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref6.payload, _excluded2);
|
|
756
757
|
try {
|
|
757
758
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
758
759
|
loading: true
|
|
@@ -769,13 +770,13 @@ function* verifyChangePhoneNumber(_ref5) {
|
|
|
769
770
|
}));
|
|
770
771
|
}
|
|
771
772
|
}
|
|
772
|
-
function* quickSmsPasswordlessPreLogin(
|
|
773
|
+
function* quickSmsPasswordlessPreLogin(_ref7) {
|
|
773
774
|
let {
|
|
774
775
|
payload: {
|
|
775
776
|
callback
|
|
776
777
|
}
|
|
777
|
-
} =
|
|
778
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
778
|
+
} = _ref7,
|
|
779
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref7.payload, _excluded3);
|
|
779
780
|
try {
|
|
780
781
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
781
782
|
loading: true
|
|
@@ -801,13 +802,13 @@ function* quickSmsPasswordlessPreLogin(_ref6) {
|
|
|
801
802
|
callback == null ? void 0 : callback(e);
|
|
802
803
|
}
|
|
803
804
|
}
|
|
804
|
-
function* passwordlessPreLogin(
|
|
805
|
+
function* passwordlessPreLogin(_ref8) {
|
|
805
806
|
let {
|
|
806
807
|
payload: {
|
|
807
808
|
callback
|
|
808
809
|
}
|
|
809
|
-
} =
|
|
810
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
810
|
+
} = _ref8,
|
|
811
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref8.payload, _excluded4);
|
|
811
812
|
try {
|
|
812
813
|
const {
|
|
813
814
|
onRedirectTo,
|
|
@@ -877,14 +878,14 @@ function* shouldShowPromptPasskeys() {
|
|
|
877
878
|
return numOfDevices === 0;
|
|
878
879
|
}
|
|
879
880
|
}
|
|
880
|
-
function* passwordlessPostLogin(
|
|
881
|
+
function* passwordlessPostLogin(_ref9) {
|
|
881
882
|
let {
|
|
882
883
|
payload: {
|
|
883
884
|
callback,
|
|
884
885
|
events
|
|
885
886
|
}
|
|
886
|
-
} =
|
|
887
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
887
|
+
} = _ref9,
|
|
888
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref9.payload, _excluded5);
|
|
888
889
|
try {
|
|
889
890
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
890
891
|
loading: true
|
|
@@ -1055,11 +1056,11 @@ function* preLogin({
|
|
|
1055
1056
|
});
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1058
|
-
function* ssoPreloginFailed(
|
|
1059
|
+
function* ssoPreloginFailed(_ref10) {
|
|
1059
1060
|
let {
|
|
1060
1061
|
callback
|
|
1061
|
-
} =
|
|
1062
|
-
body = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1062
|
+
} = _ref10,
|
|
1063
|
+
body = (0, _objectWithoutPropertiesLoose2.default)(_ref10, _excluded6);
|
|
1063
1064
|
const publicPolicy = yield (0, _effects.select)(({
|
|
1064
1065
|
auth: {
|
|
1065
1066
|
securityPolicyState: {
|
|
@@ -1123,13 +1124,13 @@ function* webAuthnCreateNewDeviceSession({
|
|
|
1123
1124
|
}));
|
|
1124
1125
|
}
|
|
1125
1126
|
}
|
|
1126
|
-
function* webAuthnVerifyNewDeviceSession(
|
|
1127
|
+
function* webAuthnVerifyNewDeviceSession(_ref11) {
|
|
1127
1128
|
let {
|
|
1128
1129
|
payload: {
|
|
1129
1130
|
callback
|
|
1130
1131
|
}
|
|
1131
|
-
} =
|
|
1132
|
-
body = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1132
|
+
} = _ref11,
|
|
1133
|
+
body = (0, _objectWithoutPropertiesLoose2.default)(_ref11.payload, _excluded7);
|
|
1133
1134
|
try {
|
|
1134
1135
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1135
1136
|
loading: true
|
|
@@ -1153,13 +1154,13 @@ function* webAuthnVerifyNewDeviceSession(_ref10) {
|
|
|
1153
1154
|
}));
|
|
1154
1155
|
}
|
|
1155
1156
|
}
|
|
1156
|
-
function* webAuthnPrelogin(
|
|
1157
|
+
function* webAuthnPrelogin(_ref12) {
|
|
1157
1158
|
let {
|
|
1158
1159
|
payload: {
|
|
1159
1160
|
callback
|
|
1160
1161
|
}
|
|
1161
|
-
} =
|
|
1162
|
-
body = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1162
|
+
} = _ref12,
|
|
1163
|
+
body = (0, _objectWithoutPropertiesLoose2.default)(_ref12.payload, _excluded8);
|
|
1163
1164
|
try {
|
|
1164
1165
|
var _options$allowCredent;
|
|
1165
1166
|
yield (0, _effects.put)(_reducer.actions.setPasskeysState({
|
|
@@ -1193,13 +1194,13 @@ function* webAuthnPrelogin(_ref11) {
|
|
|
1193
1194
|
}));
|
|
1194
1195
|
}
|
|
1195
1196
|
}
|
|
1196
|
-
function* webAuthnPostLogin(
|
|
1197
|
+
function* webAuthnPostLogin(_ref13) {
|
|
1197
1198
|
let {
|
|
1198
1199
|
payload: {
|
|
1199
1200
|
callback
|
|
1200
1201
|
}
|
|
1201
|
-
} =
|
|
1202
|
-
body = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1202
|
+
} = _ref13,
|
|
1203
|
+
body = (0, _objectWithoutPropertiesLoose2.default)(_ref13.payload, _excluded9);
|
|
1203
1204
|
try {
|
|
1204
1205
|
var _publicKey$response$u;
|
|
1205
1206
|
yield (0, _effects.put)(_reducer.actions.setPasskeysState({
|
|
@@ -1558,13 +1559,13 @@ function* handleVerifyMFAResponse({
|
|
|
1558
1559
|
isAuthenticated: true
|
|
1559
1560
|
}));
|
|
1560
1561
|
}
|
|
1561
|
-
function* preEnrollMFASMSForLogin(
|
|
1562
|
+
function* preEnrollMFASMSForLogin(_ref14) {
|
|
1562
1563
|
let {
|
|
1563
1564
|
payload: {
|
|
1564
1565
|
callback
|
|
1565
1566
|
}
|
|
1566
|
-
} =
|
|
1567
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1567
|
+
} = _ref14,
|
|
1568
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref14.payload, _excluded10);
|
|
1568
1569
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1569
1570
|
loading: true
|
|
1570
1571
|
}));
|
|
@@ -1587,13 +1588,13 @@ function* preEnrollMFASMSForLogin(_ref13) {
|
|
|
1587
1588
|
callback == null ? void 0 : callback(null);
|
|
1588
1589
|
}
|
|
1589
1590
|
}
|
|
1590
|
-
function* enrollMFASMSForLogin(
|
|
1591
|
+
function* enrollMFASMSForLogin(_ref15) {
|
|
1591
1592
|
let {
|
|
1592
1593
|
payload: {
|
|
1593
1594
|
callback
|
|
1594
1595
|
}
|
|
1595
|
-
} =
|
|
1596
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1596
|
+
} = _ref15,
|
|
1597
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref15.payload, _excluded11);
|
|
1597
1598
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1598
1599
|
loading: true
|
|
1599
1600
|
}));
|
|
@@ -1613,13 +1614,13 @@ function* enrollMFASMSForLogin(_ref14) {
|
|
|
1613
1614
|
callback == null ? void 0 : callback(null);
|
|
1614
1615
|
}
|
|
1615
1616
|
}
|
|
1616
|
-
function* preEnrollMFAWebAuthnForLogin(
|
|
1617
|
+
function* preEnrollMFAWebAuthnForLogin(_ref16) {
|
|
1617
1618
|
let {
|
|
1618
1619
|
payload: {
|
|
1619
1620
|
callback
|
|
1620
1621
|
}
|
|
1621
|
-
} =
|
|
1622
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1622
|
+
} = _ref16,
|
|
1623
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref16.payload, _excluded12);
|
|
1623
1624
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1624
1625
|
loading: true
|
|
1625
1626
|
}));
|
|
@@ -1650,13 +1651,13 @@ function* preEnrollMFAWebAuthnForLogin(_ref15) {
|
|
|
1650
1651
|
callback == null ? void 0 : callback(null);
|
|
1651
1652
|
}
|
|
1652
1653
|
}
|
|
1653
|
-
function* enrollMFAWebAuthnForLogin(
|
|
1654
|
+
function* enrollMFAWebAuthnForLogin(_ref17) {
|
|
1654
1655
|
let {
|
|
1655
1656
|
payload: {
|
|
1656
1657
|
callback
|
|
1657
1658
|
}
|
|
1658
|
-
} =
|
|
1659
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1659
|
+
} = _ref17,
|
|
1660
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref17.payload, _excluded13);
|
|
1660
1661
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1661
1662
|
loading: true
|
|
1662
1663
|
}));
|
|
@@ -1679,13 +1680,13 @@ function* enrollMFAWebAuthnForLogin(_ref16) {
|
|
|
1679
1680
|
callback == null ? void 0 : callback(null);
|
|
1680
1681
|
}
|
|
1681
1682
|
}
|
|
1682
|
-
function* enrollMFAAuthenticatorAppForLogin(
|
|
1683
|
+
function* enrollMFAAuthenticatorAppForLogin(_ref18) {
|
|
1683
1684
|
let {
|
|
1684
1685
|
payload: {
|
|
1685
1686
|
callback
|
|
1686
1687
|
}
|
|
1687
|
-
} =
|
|
1688
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1688
|
+
} = _ref18,
|
|
1689
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref18.payload, _excluded14);
|
|
1689
1690
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1690
1691
|
loading: true
|
|
1691
1692
|
}));
|
|
@@ -1705,14 +1706,14 @@ function* enrollMFAAuthenticatorAppForLogin(_ref17) {
|
|
|
1705
1706
|
callback == null ? void 0 : callback(null);
|
|
1706
1707
|
}
|
|
1707
1708
|
}
|
|
1708
|
-
function* preVerifyMFASMSForLogin(
|
|
1709
|
+
function* preVerifyMFASMSForLogin(_ref19) {
|
|
1709
1710
|
let {
|
|
1710
1711
|
payload: {
|
|
1711
1712
|
callback,
|
|
1712
1713
|
deviceId
|
|
1713
1714
|
}
|
|
1714
|
-
} =
|
|
1715
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1715
|
+
} = _ref19,
|
|
1716
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref19.payload, _excluded15);
|
|
1716
1717
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1717
1718
|
loading: true
|
|
1718
1719
|
}));
|
|
@@ -1735,14 +1736,14 @@ function* preVerifyMFASMSForLogin(_ref18) {
|
|
|
1735
1736
|
callback == null ? void 0 : callback(null);
|
|
1736
1737
|
}
|
|
1737
1738
|
}
|
|
1738
|
-
function* verifyMFASMSForLogin(
|
|
1739
|
+
function* verifyMFASMSForLogin(_ref20) {
|
|
1739
1740
|
let {
|
|
1740
1741
|
payload: {
|
|
1741
1742
|
callback,
|
|
1742
1743
|
deviceId
|
|
1743
1744
|
}
|
|
1744
|
-
} =
|
|
1745
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1745
|
+
} = _ref20,
|
|
1746
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref20.payload, _excluded16);
|
|
1746
1747
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1747
1748
|
loading: true
|
|
1748
1749
|
}));
|
|
@@ -1762,14 +1763,14 @@ function* verifyMFASMSForLogin(_ref19) {
|
|
|
1762
1763
|
callback == null ? void 0 : callback(null);
|
|
1763
1764
|
}
|
|
1764
1765
|
}
|
|
1765
|
-
function* preVerifyMFAWebAuthnForLogin(
|
|
1766
|
+
function* preVerifyMFAWebAuthnForLogin(_ref21) {
|
|
1766
1767
|
let {
|
|
1767
1768
|
payload: {
|
|
1768
1769
|
callback,
|
|
1769
1770
|
deviceId
|
|
1770
1771
|
}
|
|
1771
|
-
} =
|
|
1772
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1772
|
+
} = _ref21,
|
|
1773
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref21.payload, _excluded17);
|
|
1773
1774
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1774
1775
|
loading: true
|
|
1775
1776
|
}));
|
|
@@ -1797,14 +1798,14 @@ function* preVerifyMFAWebAuthnForLogin(_ref20) {
|
|
|
1797
1798
|
callback == null ? void 0 : callback(null);
|
|
1798
1799
|
}
|
|
1799
1800
|
}
|
|
1800
|
-
function* verifyMFAWebAuthnForLogin(
|
|
1801
|
+
function* verifyMFAWebAuthnForLogin(_ref22) {
|
|
1801
1802
|
let {
|
|
1802
1803
|
payload: {
|
|
1803
1804
|
callback,
|
|
1804
1805
|
deviceId
|
|
1805
1806
|
}
|
|
1806
|
-
} =
|
|
1807
|
-
payload = (0, _objectWithoutPropertiesLoose2.default)(
|
|
1807
|
+
} = _ref22,
|
|
1808
|
+
payload = (0, _objectWithoutPropertiesLoose2.default)(_ref22.payload, _excluded18);
|
|
1808
1809
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1809
1810
|
loading: true
|
|
1810
1811
|
}));
|
package/node/index.js
CHANGED