@frontegg/redux-store 5.10.0 → 5.14.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.
- package/auth/ActivateState/index.d.ts +2 -2
- package/auth/ApiTokensState/interfaces.d.ts +2 -1
- package/auth/LoginState/index.d.ts +4 -4
- package/auth/LoginState/saga.d.ts +4 -17
- package/auth/SignUp/saga.d.ts +6 -1
- package/auth/index.d.ts +3 -3
- package/auth/index.js +218 -213
- package/auth/reducer.d.ts +3 -3
- package/connectivity/index.js +2 -1
- package/node/auth/index.js +217 -212
- package/node/connectivity/index.js +2 -1
- package/node/subscriptions/index.js +1 -1
- package/package.json +2 -2
- package/subscriptions/index.js +1 -1
package/auth/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createAction, createSlice } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { a as authStoreName, F as FRONTEGG_AFTER_AUTH_REDIRECT_URL, H as HOSTED_LOGIN_VERIFIER_KEY } from '../constants-4d9682b2.js';
|
|
3
3
|
export { a as authStoreName } from '../constants-4d9682b2.js';
|
|
4
4
|
import { __awaiter, __rest } from 'tslib';
|
|
5
|
-
import { takeLeading, put, select, call,
|
|
5
|
+
import { takeLeading, put, select, call, delay as delay$1, all, takeEvery, retry, takeLatest } from 'redux-saga/effects';
|
|
6
6
|
import { AuthStrategyEnum, api, ContextHolder, fetch } from '@frontegg/rest-api';
|
|
7
7
|
export { AuthStrategyEnum } from '@frontegg/rest-api';
|
|
8
8
|
import { l as loadVendorPublicInfo } from '../saga-b6529ffb.js';
|
|
@@ -768,8 +768,10 @@ const tenantsDemo = [
|
|
|
768
768
|
function* loadAllowSignUps() {
|
|
769
769
|
yield put(actions.setSignUpState({ loading: true }));
|
|
770
770
|
try {
|
|
771
|
-
const
|
|
771
|
+
const policy = yield call(api.auth.getVendorConfig);
|
|
772
|
+
const { allowSignups: allowSignUps, allowNotVerifiedUsersLogin } = policy;
|
|
772
773
|
yield put(actions.setSignUpState({ loading: false, allowSignUps, allowNotVerifiedUsersLogin, firstLoad: false }));
|
|
774
|
+
yield put(actions.setSecurityPolicyPublicState({ policy, loading: false }));
|
|
773
775
|
}
|
|
774
776
|
catch (e) {
|
|
775
777
|
yield put(actions.setSignUpState({ loading: false, error: e.message, firstLoad: false }));
|
|
@@ -825,207 +827,6 @@ function* signUpSaga() {
|
|
|
825
827
|
yield takeLeading(actions.resetSignUpStateSoft, resetSignUpStateSoft);
|
|
826
828
|
}
|
|
827
829
|
|
|
828
|
-
function* loadSecurityPolicy() {
|
|
829
|
-
yield put(actions.setSecurityPolicyGlobalState({ loading: true, error: null }));
|
|
830
|
-
try {
|
|
831
|
-
const policy = yield call(api.auth.getGlobalSecurityPolicy);
|
|
832
|
-
yield put(actions.setSecurityPolicyGlobalState({ policy, loading: false }));
|
|
833
|
-
}
|
|
834
|
-
catch (e) {
|
|
835
|
-
yield put(actions.setSecurityPolicyGlobalState({ error: e.message, loading: false }));
|
|
836
|
-
}
|
|
837
|
-
yield put(actions.loadSecurityPolicyMfa());
|
|
838
|
-
yield put(actions.loadSecurityPolicyLockout());
|
|
839
|
-
yield put(actions.loadSecurityPolicyCaptcha());
|
|
840
|
-
}
|
|
841
|
-
function* loadPublicSecurityPolicy() {
|
|
842
|
-
yield put(actions.setSecurityPolicyPublicState({ loading: true, error: null }));
|
|
843
|
-
try {
|
|
844
|
-
const policy = yield call(api.auth.getVendorConfig);
|
|
845
|
-
yield put(actions.setSecurityPolicyPublicState({ policy, loading: false }));
|
|
846
|
-
}
|
|
847
|
-
catch (e) {
|
|
848
|
-
yield put(actions.setSecurityPolicyPublicState({ error: e.message, loading: false }));
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
function* loadSecurityPolicyMfa() {
|
|
852
|
-
yield put(actions.setSecurityPolicyMfaState({ loading: true, error: null }));
|
|
853
|
-
try {
|
|
854
|
-
const policy = yield call(api.auth.getMfaPolicy);
|
|
855
|
-
yield put(actions.setSecurityPolicyMfaState({ policy, loading: false }));
|
|
856
|
-
}
|
|
857
|
-
catch (e) {
|
|
858
|
-
yield put(actions.setSecurityPolicyMfaState({ error: e.message, loading: false }));
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
function* saveSecurityPolicyMfa(_a) {
|
|
862
|
-
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
863
|
-
yield put(actions.setSecurityPolicyMfaState({ saving: true, error: null }));
|
|
864
|
-
try {
|
|
865
|
-
const policy = yield call(api.auth.saveMfaPolicy, newSecurityPolicy);
|
|
866
|
-
yield put(actions.setSecurityPolicyMfaState({ policy, saving: false }));
|
|
867
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
868
|
-
}
|
|
869
|
-
catch (e) {
|
|
870
|
-
yield put(actions.setSecurityPolicyMfaState({ saving: false, error: e.message }));
|
|
871
|
-
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
function* loadSecurityPolicyLockout() {
|
|
875
|
-
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
876
|
-
try {
|
|
877
|
-
const policy = yield call(api.auth.getLockoutPolicy);
|
|
878
|
-
yield put(actions.setSecurityPolicyLockoutState({ policy, loading: false }));
|
|
879
|
-
}
|
|
880
|
-
catch (e) {
|
|
881
|
-
yield put(actions.setSecurityPolicyLockoutState({ error: e.message, loading: false }));
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
function* saveSecurityPolicyLockout(_a) {
|
|
885
|
-
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
886
|
-
yield put(actions.setSecurityPolicyLockoutState({ saving: true, error: null }));
|
|
887
|
-
try {
|
|
888
|
-
const policy = yield call(api.auth.saveLockoutPolicy, newSecurityPolicy);
|
|
889
|
-
yield put(actions.setSecurityPolicyLockoutState({ policy, saving: false }));
|
|
890
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
891
|
-
}
|
|
892
|
-
catch (e) {
|
|
893
|
-
yield put(actions.setSecurityPolicyLockoutState({ saving: false, error: e.message }));
|
|
894
|
-
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
function* loadSecurityPolicyCaptcha() {
|
|
898
|
-
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
899
|
-
try {
|
|
900
|
-
const policy = yield call(api.auth.getCaptchaPolicy);
|
|
901
|
-
yield put(actions.setSecurityPolicyCaptchaState({ policy, loading: false }));
|
|
902
|
-
}
|
|
903
|
-
catch (e) {
|
|
904
|
-
yield put(actions.setSecurityPolicyCaptchaState({ error: e.message, loading: false }));
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
function* loadSecurityPolicyPasswordHistory() {
|
|
908
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ loading: true, error: null }));
|
|
909
|
-
try {
|
|
910
|
-
const policy = yield call(api.auth.getPasswordHistoryPolicy);
|
|
911
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, loading: false }));
|
|
912
|
-
}
|
|
913
|
-
catch (e) {
|
|
914
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ error: e.message, loading: false }));
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
function* saveSecurityPolicyPasswordHistory(_a) {
|
|
918
|
-
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
919
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: true, error: null }));
|
|
920
|
-
try {
|
|
921
|
-
const policy = yield call(api.auth.savePasswordHistoryPolicy, newSecurityPolicy);
|
|
922
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, saving: false }));
|
|
923
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
924
|
-
}
|
|
925
|
-
catch (e) {
|
|
926
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: false, error: e.message }));
|
|
927
|
-
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
function* loadVendorPasswordConfig() {
|
|
931
|
-
yield put(actions.setSecurityPolicyPasswordState({ loading: true, error: null }));
|
|
932
|
-
try {
|
|
933
|
-
const policy = yield call(api.auth.getPasswordConfigPolicy);
|
|
934
|
-
yield put(actions.setSecurityPolicyPasswordState({ policy, loading: false }));
|
|
935
|
-
}
|
|
936
|
-
catch (e) {
|
|
937
|
-
yield put(actions.setSecurityPolicyPasswordState({ error: e.message, loading: false }));
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
function* securityPolicySagas() {
|
|
941
|
-
yield takeLeading(actions.loadSecurityPolicy, loadSecurityPolicy);
|
|
942
|
-
yield takeEvery(actions.saveSecurityPolicyMfa, saveSecurityPolicyMfa);
|
|
943
|
-
yield takeEvery(actions.loadSecurityPolicyMfa, loadSecurityPolicyMfa);
|
|
944
|
-
yield takeEvery(actions.saveSecurityPolicyLockout, saveSecurityPolicyLockout);
|
|
945
|
-
yield takeEvery(actions.loadSecurityPolicyLockout, loadSecurityPolicyLockout);
|
|
946
|
-
yield takeEvery(actions.loadSecurityPolicyCaptcha, loadSecurityPolicyCaptcha);
|
|
947
|
-
yield takeEvery(actions.saveSecurityPolicyPasswordHistory, saveSecurityPolicyPasswordHistory);
|
|
948
|
-
yield takeEvery(actions.loadSecurityPolicyPasswordHistory, loadSecurityPolicyPasswordHistory);
|
|
949
|
-
yield takeEvery(actions.loadVendorPasswordConfig, loadVendorPasswordConfig);
|
|
950
|
-
yield takeEvery(actions.loadPublicSecurityPolicy, loadPublicSecurityPolicy);
|
|
951
|
-
}
|
|
952
|
-
/*********************************
|
|
953
|
-
* Preview Sagas
|
|
954
|
-
*********************************/
|
|
955
|
-
function* loadPublicSecurityPolicyMock() {
|
|
956
|
-
yield put(actions.setSecurityPolicyPublicState({ loading: true, error: null }));
|
|
957
|
-
try {
|
|
958
|
-
yield put(actions.setSecurityPolicyPublicState({ policy: publicSecurityPolicy, loading: false }));
|
|
959
|
-
}
|
|
960
|
-
catch (e) {
|
|
961
|
-
yield put(actions.setSecurityPolicyPublicState({ error: e.message, loading: false }));
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
function* loadSecurityPolicyMock() {
|
|
965
|
-
yield put(actions.setSecurityPolicyGlobalState({ loading: true, error: null }));
|
|
966
|
-
yield delay();
|
|
967
|
-
yield put(actions.setSecurityPolicyGlobalState({ policy: policyDemo, loading: false }));
|
|
968
|
-
yield put(actions.loadSecurityPolicyMfa());
|
|
969
|
-
yield put(actions.loadSecurityPolicyLockout());
|
|
970
|
-
yield put(actions.loadSecurityPolicyCaptcha());
|
|
971
|
-
}
|
|
972
|
-
function* loadSecurityPolicyMfaMock() {
|
|
973
|
-
yield put(actions.setSecurityPolicyMfaState({ loading: true, error: null }));
|
|
974
|
-
yield delay();
|
|
975
|
-
yield put(actions.setSecurityPolicyMfaState({ policy: policyMfaDemo, loading: false }));
|
|
976
|
-
}
|
|
977
|
-
function* saveSecurityPolicyMfaMock(_a) {
|
|
978
|
-
var _b;
|
|
979
|
-
var _c = _a.payload, { callback } = _c, newSecurityPolicy = __rest(_c, ["callback"]);
|
|
980
|
-
yield put(actions.setSecurityPolicyMfaState({ saving: true, error: null }));
|
|
981
|
-
const policy = Object.assign(Object.assign({}, policyLockoutDemo), { id: (_b = newSecurityPolicy.id) !== null && _b !== void 0 ? _b : policyLockoutDemo.id, enforceMFAType: newSecurityPolicy.enforceMFAType });
|
|
982
|
-
yield delay();
|
|
983
|
-
yield put(actions.setSecurityPolicyMfaState({ policy, saving: false }));
|
|
984
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
985
|
-
}
|
|
986
|
-
function* loadSecurityPolicyLockoutMock() {
|
|
987
|
-
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
988
|
-
yield delay();
|
|
989
|
-
yield put(actions.setSecurityPolicyLockoutState({ policy: policyLockoutDemo, loading: false }));
|
|
990
|
-
}
|
|
991
|
-
function* saveSecurityPolicyLockoutMock(_a) {
|
|
992
|
-
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
993
|
-
yield put(actions.setSecurityPolicyLockoutState({ saving: true, error: null }));
|
|
994
|
-
yield delay();
|
|
995
|
-
const policy = Object.assign(Object.assign(Object.assign({}, newSecurityPolicy), policyLockoutDemo), { id: newSecurityPolicy.id ? newSecurityPolicy.id : policyLockoutDemo.id });
|
|
996
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
997
|
-
yield put(actions.setSecurityPolicyLockoutState({ policy, saving: false }));
|
|
998
|
-
}
|
|
999
|
-
function* loadSecurityPolicyCaptchaMock() {
|
|
1000
|
-
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
1001
|
-
yield delay();
|
|
1002
|
-
yield put(actions.setSecurityPolicyLockoutState({ policy: policyLockoutDemo, loading: false }));
|
|
1003
|
-
}
|
|
1004
|
-
function* loadSecurityPolicyPasswordHistoryMock() {
|
|
1005
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ loading: true, error: null }));
|
|
1006
|
-
yield delay();
|
|
1007
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy: policyPasswordHistoryDemo, loading: false }));
|
|
1008
|
-
}
|
|
1009
|
-
function* saveSecurityPolicyPasswordHistoryMock(_a) {
|
|
1010
|
-
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
1011
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: true, error: null }));
|
|
1012
|
-
yield delay();
|
|
1013
|
-
const policy = Object.assign(Object.assign(Object.assign({}, newSecurityPolicy), policyPasswordHistoryDemo), { id: newSecurityPolicy.id ? newSecurityPolicy.id : policyPasswordHistoryDemo.id });
|
|
1014
|
-
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
1015
|
-
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, saving: false }));
|
|
1016
|
-
}
|
|
1017
|
-
function* securityPolicySagasMock() {
|
|
1018
|
-
yield takeLeading(actions.loadSecurityPolicy, loadSecurityPolicyMock);
|
|
1019
|
-
yield takeEvery(actions.loadPublicSecurityPolicy, loadPublicSecurityPolicyMock);
|
|
1020
|
-
yield takeEvery(actions.saveSecurityPolicyMfa, saveSecurityPolicyMfaMock);
|
|
1021
|
-
yield takeEvery(actions.loadSecurityPolicyMfa, loadSecurityPolicyMfaMock);
|
|
1022
|
-
yield takeEvery(actions.saveSecurityPolicyLockout, saveSecurityPolicyLockoutMock);
|
|
1023
|
-
yield takeEvery(actions.loadSecurityPolicyLockout, loadSecurityPolicyLockoutMock);
|
|
1024
|
-
yield takeEvery(actions.loadSecurityPolicyCaptcha, loadSecurityPolicyCaptchaMock);
|
|
1025
|
-
yield takeEvery(actions.saveSecurityPolicyPasswordHistory, saveSecurityPolicyPasswordHistoryMock);
|
|
1026
|
-
yield takeEvery(actions.loadSecurityPolicyPasswordHistory, loadSecurityPolicyPasswordHistoryMock);
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
830
|
function* afterAuthNavigation() {
|
|
1030
831
|
var _a;
|
|
1031
832
|
const onRedirectTo = ContextHolder.onRedirectTo;
|
|
@@ -1105,14 +906,14 @@ function* refreshToken() {
|
|
|
1105
906
|
try {
|
|
1106
907
|
const onRedirectTo = ContextHolder.onRedirectTo;
|
|
1107
908
|
const { routes, loginState } = yield select((state) => state.auth);
|
|
1108
|
-
const user = yield call(api.auth.
|
|
909
|
+
const { user, tenants } = yield call(api.auth.refreshTokenV2);
|
|
1109
910
|
if (isMfaRequired(user)) {
|
|
1110
911
|
const mfaRequiredState = yield getMfaRequiredState(user);
|
|
1111
912
|
yield put(actions.setState(mfaRequiredState));
|
|
1112
913
|
onRedirectTo(routes.loginUrl, { preserveQueryParams: true });
|
|
1113
914
|
}
|
|
1114
915
|
else {
|
|
1115
|
-
yield put(actions.
|
|
916
|
+
yield put(actions.setTenantsState({ tenants, loading: false }));
|
|
1116
917
|
yield put(actions.setState({ user, isAuthenticated: true }));
|
|
1117
918
|
if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl].some(url => url && window.location.pathname.endsWith(url)) ||
|
|
1118
919
|
(window.location.pathname.endsWith(routes.activateUrl) && user.verified)) {
|
|
@@ -1135,12 +936,11 @@ function* requestAuthorize({ payload: firstTime }) {
|
|
|
1135
936
|
const calls = [];
|
|
1136
937
|
if (firstTime) {
|
|
1137
938
|
yield put(actions.setState({ isLoading: true }));
|
|
1138
|
-
calls.push(call(refreshMetadata));
|
|
1139
939
|
yield put(actions.loadSocialLoginsConfigurationV2());
|
|
1140
940
|
calls.push(call(loadAllowSignUps));
|
|
1141
941
|
calls.push(call(loadSSOPublicConfigurationFunction));
|
|
1142
942
|
calls.push(call(loadVendorPublicInfo));
|
|
1143
|
-
calls.push(call(
|
|
943
|
+
calls.push(call(refreshMetadata));
|
|
1144
944
|
}
|
|
1145
945
|
calls.push(call(refreshToken));
|
|
1146
946
|
yield all(calls);
|
|
@@ -1201,8 +1001,9 @@ function* passwordlessPreLogin(_a) {
|
|
|
1201
1001
|
callback === null || callback === void 0 ? void 0 : callback();
|
|
1202
1002
|
}
|
|
1203
1003
|
}
|
|
1204
|
-
function* passwordlessPostLogin(
|
|
1205
|
-
var
|
|
1004
|
+
function* passwordlessPostLogin(_a) {
|
|
1005
|
+
var _b;
|
|
1006
|
+
var _c = _a.payload, { callback } = _c, payload = __rest(_c, ["callback"]);
|
|
1206
1007
|
try {
|
|
1207
1008
|
yield put(actions.setLoginState({ loading: true }));
|
|
1208
1009
|
const data = yield call(api.auth.passwordlessPostLogin, payload);
|
|
@@ -1219,9 +1020,10 @@ function* passwordlessPostLogin({ payload }) {
|
|
|
1219
1020
|
yield put(actions.setState({ user, isAuthenticated: true }));
|
|
1220
1021
|
yield afterAuthNavigation();
|
|
1221
1022
|
}
|
|
1023
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1222
1024
|
}
|
|
1223
1025
|
catch (e) {
|
|
1224
|
-
yield put(actions.setLoginState({ error: (
|
|
1026
|
+
yield put(actions.setLoginState({ error: (_b = e.message) !== null && _b !== void 0 ? _b : 'Failed to authenticate' }));
|
|
1225
1027
|
}
|
|
1226
1028
|
finally {
|
|
1227
1029
|
yield put(actions.setLoginState({ loading: false }));
|
|
@@ -1305,7 +1107,7 @@ function* postLogin({ payload }) {
|
|
|
1305
1107
|
yield put(actions.setLoginState({ step: LoginStep.loginWithSSOFailed, loading: false }));
|
|
1306
1108
|
}
|
|
1307
1109
|
}
|
|
1308
|
-
function* login({ payload: { email, password, recaptchaToken, invitationToken } }) {
|
|
1110
|
+
function* login({ payload: { email, password, recaptchaToken, invitationToken, callback } }) {
|
|
1309
1111
|
yield put(actions.setLoginState({ loading: true }));
|
|
1310
1112
|
try {
|
|
1311
1113
|
const user = yield call(api.auth.login, {
|
|
@@ -1355,6 +1157,7 @@ function* login({ payload: { email, password, recaptchaToken, invitationToken }
|
|
|
1355
1157
|
yield put(actions.loadTenants());
|
|
1356
1158
|
yield afterAuthNavigation();
|
|
1357
1159
|
}
|
|
1160
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
1358
1161
|
}
|
|
1359
1162
|
catch (e) {
|
|
1360
1163
|
ContextHolder.setAccessToken(null);
|
|
@@ -2307,7 +2110,8 @@ function* forgotPasswordSagas() {
|
|
|
2307
2110
|
yield takeLeading(actions.loadPasswordConfig, loadPasswordConfig);
|
|
2308
2111
|
}
|
|
2309
2112
|
|
|
2310
|
-
function* activateAccount(
|
|
2113
|
+
function* activateAccount(_a) {
|
|
2114
|
+
var _b = _a.payload, { callback } = _b, payload = __rest(_b, ["callback"]);
|
|
2311
2115
|
yield put(actions.setActivateState({ loading: true }));
|
|
2312
2116
|
try {
|
|
2313
2117
|
const onRedirectTo = ContextHolder.onRedirectTo;
|
|
@@ -2328,6 +2132,7 @@ function* activateAccount({ payload }) {
|
|
|
2328
2132
|
yield put(actions.setState({ user, isAuthenticated: true }));
|
|
2329
2133
|
yield afterAuthNavigation();
|
|
2330
2134
|
}
|
|
2135
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
2331
2136
|
}
|
|
2332
2137
|
catch (e) {
|
|
2333
2138
|
yield put(actions.setActivateState({ loading: false, error: e.message }));
|
|
@@ -2796,7 +2601,6 @@ function* loadSocialLoginsConfigurations() {
|
|
|
2796
2601
|
function* loadSocialLoginsConfigurationsV2() {
|
|
2797
2602
|
try {
|
|
2798
2603
|
yield put(actions.setSocialLoginsState({ loading: true }));
|
|
2799
|
-
console.log('api.auth.getSocialLoginProvidersV2', api.auth.getSocialLoginProvidersV2);
|
|
2800
2604
|
const socialLoginsConfigV2 = yield call(api.auth.getSocialLoginProvidersV2);
|
|
2801
2605
|
const baseUrl = fetch.getBaseUrl(ContextHolder.getContext());
|
|
2802
2606
|
const socialLoginsConfigWithFullUrl = socialLoginsConfigV2.map((_a) => {
|
|
@@ -3039,6 +2843,207 @@ function* apiTokensSagaMock() {
|
|
|
3039
2843
|
yield takeLatest(actions.deleteTenantApiToken, deleteTenantApiTokenMock);
|
|
3040
2844
|
}
|
|
3041
2845
|
|
|
2846
|
+
function* loadSecurityPolicy() {
|
|
2847
|
+
yield put(actions.setSecurityPolicyGlobalState({ loading: true, error: null }));
|
|
2848
|
+
try {
|
|
2849
|
+
const policy = yield call(api.auth.getGlobalSecurityPolicy);
|
|
2850
|
+
yield put(actions.setSecurityPolicyGlobalState({ policy, loading: false }));
|
|
2851
|
+
}
|
|
2852
|
+
catch (e) {
|
|
2853
|
+
yield put(actions.setSecurityPolicyGlobalState({ error: e.message, loading: false }));
|
|
2854
|
+
}
|
|
2855
|
+
yield put(actions.loadSecurityPolicyMfa());
|
|
2856
|
+
yield put(actions.loadSecurityPolicyLockout());
|
|
2857
|
+
yield put(actions.loadSecurityPolicyCaptcha());
|
|
2858
|
+
}
|
|
2859
|
+
function* loadPublicSecurityPolicy() {
|
|
2860
|
+
yield put(actions.setSecurityPolicyPublicState({ loading: true, error: null }));
|
|
2861
|
+
try {
|
|
2862
|
+
const policy = yield call(api.auth.getVendorConfig);
|
|
2863
|
+
yield put(actions.setSecurityPolicyPublicState({ policy, loading: false }));
|
|
2864
|
+
}
|
|
2865
|
+
catch (e) {
|
|
2866
|
+
yield put(actions.setSecurityPolicyPublicState({ error: e.message, loading: false }));
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
function* loadSecurityPolicyMfa() {
|
|
2870
|
+
yield put(actions.setSecurityPolicyMfaState({ loading: true, error: null }));
|
|
2871
|
+
try {
|
|
2872
|
+
const policy = yield call(api.auth.getMfaPolicy);
|
|
2873
|
+
yield put(actions.setSecurityPolicyMfaState({ policy, loading: false }));
|
|
2874
|
+
}
|
|
2875
|
+
catch (e) {
|
|
2876
|
+
yield put(actions.setSecurityPolicyMfaState({ error: e.message, loading: false }));
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
function* saveSecurityPolicyMfa(_a) {
|
|
2880
|
+
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
2881
|
+
yield put(actions.setSecurityPolicyMfaState({ saving: true, error: null }));
|
|
2882
|
+
try {
|
|
2883
|
+
const policy = yield call(api.auth.saveMfaPolicy, newSecurityPolicy);
|
|
2884
|
+
yield put(actions.setSecurityPolicyMfaState({ policy, saving: false }));
|
|
2885
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
2886
|
+
}
|
|
2887
|
+
catch (e) {
|
|
2888
|
+
yield put(actions.setSecurityPolicyMfaState({ saving: false, error: e.message }));
|
|
2889
|
+
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
function* loadSecurityPolicyLockout() {
|
|
2893
|
+
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
2894
|
+
try {
|
|
2895
|
+
const policy = yield call(api.auth.getLockoutPolicy);
|
|
2896
|
+
yield put(actions.setSecurityPolicyLockoutState({ policy, loading: false }));
|
|
2897
|
+
}
|
|
2898
|
+
catch (e) {
|
|
2899
|
+
yield put(actions.setSecurityPolicyLockoutState({ error: e.message, loading: false }));
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
function* saveSecurityPolicyLockout(_a) {
|
|
2903
|
+
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
2904
|
+
yield put(actions.setSecurityPolicyLockoutState({ saving: true, error: null }));
|
|
2905
|
+
try {
|
|
2906
|
+
const policy = yield call(api.auth.saveLockoutPolicy, newSecurityPolicy);
|
|
2907
|
+
yield put(actions.setSecurityPolicyLockoutState({ policy, saving: false }));
|
|
2908
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
2909
|
+
}
|
|
2910
|
+
catch (e) {
|
|
2911
|
+
yield put(actions.setSecurityPolicyLockoutState({ saving: false, error: e.message }));
|
|
2912
|
+
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
function* loadSecurityPolicyCaptcha() {
|
|
2916
|
+
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
2917
|
+
try {
|
|
2918
|
+
const policy = yield call(api.auth.getCaptchaPolicy);
|
|
2919
|
+
yield put(actions.setSecurityPolicyCaptchaState({ policy, loading: false }));
|
|
2920
|
+
}
|
|
2921
|
+
catch (e) {
|
|
2922
|
+
yield put(actions.setSecurityPolicyCaptchaState({ error: e.message, loading: false }));
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
function* loadSecurityPolicyPasswordHistory() {
|
|
2926
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ loading: true, error: null }));
|
|
2927
|
+
try {
|
|
2928
|
+
const policy = yield call(api.auth.getPasswordHistoryPolicy);
|
|
2929
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, loading: false }));
|
|
2930
|
+
}
|
|
2931
|
+
catch (e) {
|
|
2932
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ error: e.message, loading: false }));
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
function* saveSecurityPolicyPasswordHistory(_a) {
|
|
2936
|
+
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
2937
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: true, error: null }));
|
|
2938
|
+
try {
|
|
2939
|
+
const policy = yield call(api.auth.savePasswordHistoryPolicy, newSecurityPolicy);
|
|
2940
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, saving: false }));
|
|
2941
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
2942
|
+
}
|
|
2943
|
+
catch (e) {
|
|
2944
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: false, error: e.message }));
|
|
2945
|
+
callback === null || callback === void 0 ? void 0 : callback(null, e);
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
function* loadVendorPasswordConfig() {
|
|
2949
|
+
yield put(actions.setSecurityPolicyPasswordState({ loading: true, error: null }));
|
|
2950
|
+
try {
|
|
2951
|
+
const policy = yield call(api.auth.getPasswordConfigPolicy);
|
|
2952
|
+
yield put(actions.setSecurityPolicyPasswordState({ policy, loading: false }));
|
|
2953
|
+
}
|
|
2954
|
+
catch (e) {
|
|
2955
|
+
yield put(actions.setSecurityPolicyPasswordState({ error: e.message, loading: false }));
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
function* securityPolicySagas() {
|
|
2959
|
+
yield takeLeading(actions.loadSecurityPolicy, loadSecurityPolicy);
|
|
2960
|
+
yield takeEvery(actions.saveSecurityPolicyMfa, saveSecurityPolicyMfa);
|
|
2961
|
+
yield takeEvery(actions.loadSecurityPolicyMfa, loadSecurityPolicyMfa);
|
|
2962
|
+
yield takeEvery(actions.saveSecurityPolicyLockout, saveSecurityPolicyLockout);
|
|
2963
|
+
yield takeEvery(actions.loadSecurityPolicyLockout, loadSecurityPolicyLockout);
|
|
2964
|
+
yield takeEvery(actions.loadSecurityPolicyCaptcha, loadSecurityPolicyCaptcha);
|
|
2965
|
+
yield takeEvery(actions.saveSecurityPolicyPasswordHistory, saveSecurityPolicyPasswordHistory);
|
|
2966
|
+
yield takeEvery(actions.loadSecurityPolicyPasswordHistory, loadSecurityPolicyPasswordHistory);
|
|
2967
|
+
yield takeEvery(actions.loadVendorPasswordConfig, loadVendorPasswordConfig);
|
|
2968
|
+
yield takeEvery(actions.loadPublicSecurityPolicy, loadPublicSecurityPolicy);
|
|
2969
|
+
}
|
|
2970
|
+
/*********************************
|
|
2971
|
+
* Preview Sagas
|
|
2972
|
+
*********************************/
|
|
2973
|
+
function* loadPublicSecurityPolicyMock() {
|
|
2974
|
+
yield put(actions.setSecurityPolicyPublicState({ loading: true, error: null }));
|
|
2975
|
+
try {
|
|
2976
|
+
yield put(actions.setSecurityPolicyPublicState({ policy: publicSecurityPolicy, loading: false }));
|
|
2977
|
+
}
|
|
2978
|
+
catch (e) {
|
|
2979
|
+
yield put(actions.setSecurityPolicyPublicState({ error: e.message, loading: false }));
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
function* loadSecurityPolicyMock() {
|
|
2983
|
+
yield put(actions.setSecurityPolicyGlobalState({ loading: true, error: null }));
|
|
2984
|
+
yield delay();
|
|
2985
|
+
yield put(actions.setSecurityPolicyGlobalState({ policy: policyDemo, loading: false }));
|
|
2986
|
+
yield put(actions.loadSecurityPolicyMfa());
|
|
2987
|
+
yield put(actions.loadSecurityPolicyLockout());
|
|
2988
|
+
yield put(actions.loadSecurityPolicyCaptcha());
|
|
2989
|
+
}
|
|
2990
|
+
function* loadSecurityPolicyMfaMock() {
|
|
2991
|
+
yield put(actions.setSecurityPolicyMfaState({ loading: true, error: null }));
|
|
2992
|
+
yield delay();
|
|
2993
|
+
yield put(actions.setSecurityPolicyMfaState({ policy: policyMfaDemo, loading: false }));
|
|
2994
|
+
}
|
|
2995
|
+
function* saveSecurityPolicyMfaMock(_a) {
|
|
2996
|
+
var _b;
|
|
2997
|
+
var _c = _a.payload, { callback } = _c, newSecurityPolicy = __rest(_c, ["callback"]);
|
|
2998
|
+
yield put(actions.setSecurityPolicyMfaState({ saving: true, error: null }));
|
|
2999
|
+
const policy = Object.assign(Object.assign({}, policyLockoutDemo), { id: (_b = newSecurityPolicy.id) !== null && _b !== void 0 ? _b : policyLockoutDemo.id, enforceMFAType: newSecurityPolicy.enforceMFAType });
|
|
3000
|
+
yield delay();
|
|
3001
|
+
yield put(actions.setSecurityPolicyMfaState({ policy, saving: false }));
|
|
3002
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
3003
|
+
}
|
|
3004
|
+
function* loadSecurityPolicyLockoutMock() {
|
|
3005
|
+
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
3006
|
+
yield delay();
|
|
3007
|
+
yield put(actions.setSecurityPolicyLockoutState({ policy: policyLockoutDemo, loading: false }));
|
|
3008
|
+
}
|
|
3009
|
+
function* saveSecurityPolicyLockoutMock(_a) {
|
|
3010
|
+
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
3011
|
+
yield put(actions.setSecurityPolicyLockoutState({ saving: true, error: null }));
|
|
3012
|
+
yield delay();
|
|
3013
|
+
const policy = Object.assign(Object.assign(Object.assign({}, newSecurityPolicy), policyLockoutDemo), { id: newSecurityPolicy.id ? newSecurityPolicy.id : policyLockoutDemo.id });
|
|
3014
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
3015
|
+
yield put(actions.setSecurityPolicyLockoutState({ policy, saving: false }));
|
|
3016
|
+
}
|
|
3017
|
+
function* loadSecurityPolicyCaptchaMock() {
|
|
3018
|
+
yield put(actions.setSecurityPolicyLockoutState({ loading: true, error: null }));
|
|
3019
|
+
yield delay();
|
|
3020
|
+
yield put(actions.setSecurityPolicyLockoutState({ policy: policyLockoutDemo, loading: false }));
|
|
3021
|
+
}
|
|
3022
|
+
function* loadSecurityPolicyPasswordHistoryMock() {
|
|
3023
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ loading: true, error: null }));
|
|
3024
|
+
yield delay();
|
|
3025
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy: policyPasswordHistoryDemo, loading: false }));
|
|
3026
|
+
}
|
|
3027
|
+
function* saveSecurityPolicyPasswordHistoryMock(_a) {
|
|
3028
|
+
var _b = _a.payload, { callback } = _b, newSecurityPolicy = __rest(_b, ["callback"]);
|
|
3029
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ saving: true, error: null }));
|
|
3030
|
+
yield delay();
|
|
3031
|
+
const policy = Object.assign(Object.assign(Object.assign({}, newSecurityPolicy), policyPasswordHistoryDemo), { id: newSecurityPolicy.id ? newSecurityPolicy.id : policyPasswordHistoryDemo.id });
|
|
3032
|
+
callback === null || callback === void 0 ? void 0 : callback(policy);
|
|
3033
|
+
yield put(actions.setSecurityPolicyPasswordHistoryState({ policy, saving: false }));
|
|
3034
|
+
}
|
|
3035
|
+
function* securityPolicySagasMock() {
|
|
3036
|
+
yield takeLeading(actions.loadSecurityPolicy, loadSecurityPolicyMock);
|
|
3037
|
+
yield takeEvery(actions.loadPublicSecurityPolicy, loadPublicSecurityPolicyMock);
|
|
3038
|
+
yield takeEvery(actions.saveSecurityPolicyMfa, saveSecurityPolicyMfaMock);
|
|
3039
|
+
yield takeEvery(actions.loadSecurityPolicyMfa, loadSecurityPolicyMfaMock);
|
|
3040
|
+
yield takeEvery(actions.saveSecurityPolicyLockout, saveSecurityPolicyLockoutMock);
|
|
3041
|
+
yield takeEvery(actions.loadSecurityPolicyLockout, loadSecurityPolicyLockoutMock);
|
|
3042
|
+
yield takeEvery(actions.loadSecurityPolicyCaptcha, loadSecurityPolicyCaptchaMock);
|
|
3043
|
+
yield takeEvery(actions.saveSecurityPolicyPasswordHistory, saveSecurityPolicyPasswordHistoryMock);
|
|
3044
|
+
yield takeEvery(actions.loadSecurityPolicyPasswordHistory, loadSecurityPolicyPasswordHistoryMock);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3042
3047
|
function* saveAccountSettings({ payload }) {
|
|
3043
3048
|
var _a, _b;
|
|
3044
3049
|
try {
|
package/auth/reducer.d.ts
CHANGED
|
@@ -196,7 +196,7 @@ declare const actions: {
|
|
|
196
196
|
resetPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPassword, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResetPassword, boolean>, string, never, never>;
|
|
197
197
|
loadPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("@frontegg/rest-api").IGetUserPasswordConfig | undefined)?], import("@frontegg/rest-api").IGetUserPasswordConfig | undefined, string, never, never>;
|
|
198
198
|
acceptInvitation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IAcceptInvitation], import("@frontegg/rest-api").IAcceptInvitation, string, never, never>;
|
|
199
|
-
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IActivateAccount], import("@frontegg/rest-api").IActivateAccount, string, never, never>;
|
|
199
|
+
activateAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IActivateAccount, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IActivateAccount, boolean>, string, never, never>;
|
|
200
200
|
getActivateAccountStrategy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IGetActivateAccountStrategy, import("@frontegg/rest-api").IGetActivateAccountStrategyResponse>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IGetActivateAccountStrategy, import("@frontegg/rest-api").IGetActivateAccountStrategyResponse>, string, never, never>;
|
|
201
201
|
resendActivationEmail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IResendActivationEmail], import("@frontegg/rest-api").IResendActivationEmail, string, never, never>;
|
|
202
202
|
loadSocialLoginsConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -215,7 +215,7 @@ declare const actions: {
|
|
|
215
215
|
invitationToken?: string | undefined;
|
|
216
216
|
}, void>, string, never, never>;
|
|
217
217
|
postLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IPostLogin], import("@frontegg/rest-api").IPostLogin, string, never, never>;
|
|
218
|
-
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").ILogin], import("@frontegg/rest-api").ILogin, string, never, never>;
|
|
218
|
+
login: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ILogin, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ILogin, boolean>, string, never, never>;
|
|
219
219
|
loginWithMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, boolean>, string, never, never>;
|
|
220
220
|
recoverMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IRecoverMFAToken], import("@frontegg/rest-api").IRecoverMFAToken, string, never, never>;
|
|
221
221
|
logout: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[((() => void) | undefined)?], (() => void) | undefined, string, never, never>;
|
|
@@ -226,7 +226,7 @@ declare const actions: {
|
|
|
226
226
|
mfaToken: string;
|
|
227
227
|
}, string, never, never>;
|
|
228
228
|
passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>, string, never, never>;
|
|
229
|
-
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IPasswordlessPostLogin], import("@frontegg/rest-api").IPasswordlessPostLogin, string, never, never>;
|
|
229
|
+
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPostLogin, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPostLogin, boolean>, string, never, never>;
|
|
230
230
|
verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IVerifyInviteToken], import("@frontegg/rest-api").IVerifyInviteToken, string, never, never>;
|
|
231
231
|
setRolesState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").RolesState>], Partial<import(".").RolesState>, string, never, never>;
|
|
232
232
|
resetRolesState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
package/connectivity/index.js
CHANGED
|
@@ -130,6 +130,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
130
130
|
return res.reduce((acc, curr, idx) => (Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr })), {});
|
|
131
131
|
})(),
|
|
132
132
|
]);
|
|
133
|
+
const webhooks = yield loadFunction({ payload: { api: 'webhook' }, type: '' });
|
|
133
134
|
const data = values.reduce((acc, curr, idx) => payload[idx]
|
|
134
135
|
? values[values.length - 1][payload[idx]].length
|
|
135
136
|
? Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr, list: [
|
|
@@ -143,7 +144,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
143
144
|
image: channels2Platform[payload[idx]].image,
|
|
144
145
|
},
|
|
145
146
|
] }) : acc
|
|
146
|
-
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [] });
|
|
147
|
+
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [], webhook: webhooks });
|
|
147
148
|
yield put(actions.setConnectivityState(Object.assign(Object.assign({}, data), { error: undefined, isSaving: false, isLoading: false })));
|
|
148
149
|
}
|
|
149
150
|
catch (e) {
|