@frontegg/js 7.75.0 → 7.76.0-alpha.1
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/FronteggApp/FronteggApp.d.ts +1 -0
- package/FronteggApp/FronteggApp.js +72 -45
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +72 -45
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +509 -183
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -634,8 +634,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
634
634
|
return _ref7.apply(this, arguments);
|
|
635
635
|
};
|
|
636
636
|
}();
|
|
637
|
-
this.
|
|
638
|
-
var _ref8 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee8(options) {
|
|
637
|
+
this.renderEditEmailForm = /*#__PURE__*/function () {
|
|
638
|
+
var _ref8 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee8(container, props, options) {
|
|
639
639
|
var FronteggAdminPortal;
|
|
640
640
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee8$(_context8) {
|
|
641
641
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -644,18 +644,24 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
644
644
|
return _this.loadScript('FronteggAdminPortal');
|
|
645
645
|
case 2:
|
|
646
646
|
FronteggAdminPortal = _context8.sent;
|
|
647
|
-
return _context8.abrupt("return", FronteggAdminPortal.
|
|
647
|
+
return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
|
|
648
|
+
injector: _this,
|
|
649
|
+
options: _this.options,
|
|
650
|
+
props: props,
|
|
651
|
+
themeOptions: options.themeOptions,
|
|
652
|
+
localizations: options.localizations
|
|
653
|
+
}));
|
|
648
654
|
case 4:
|
|
649
655
|
case "end":
|
|
650
656
|
return _context8.stop();
|
|
651
657
|
}
|
|
652
658
|
}, _callee8);
|
|
653
659
|
}));
|
|
654
|
-
return function (_x13) {
|
|
660
|
+
return function (_x13, _x14, _x15) {
|
|
655
661
|
return _ref8.apply(this, arguments);
|
|
656
662
|
};
|
|
657
663
|
}();
|
|
658
|
-
this.
|
|
664
|
+
this.getUsersTableStore = /*#__PURE__*/function () {
|
|
659
665
|
var _ref9 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee9(options) {
|
|
660
666
|
var FronteggAdminPortal;
|
|
661
667
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee9$(_context9) {
|
|
@@ -665,17 +671,38 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
665
671
|
return _this.loadScript('FronteggAdminPortal');
|
|
666
672
|
case 2:
|
|
667
673
|
FronteggAdminPortal = _context9.sent;
|
|
668
|
-
return _context9.abrupt("return", FronteggAdminPortal.
|
|
674
|
+
return _context9.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
|
|
669
675
|
case 4:
|
|
670
676
|
case "end":
|
|
671
677
|
return _context9.stop();
|
|
672
678
|
}
|
|
673
679
|
}, _callee9);
|
|
674
680
|
}));
|
|
675
|
-
return function (
|
|
681
|
+
return function (_x16) {
|
|
676
682
|
return _ref9.apply(this, arguments);
|
|
677
683
|
};
|
|
678
684
|
}();
|
|
685
|
+
this.getInviteUserDialogStore = /*#__PURE__*/function () {
|
|
686
|
+
var _ref10 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee10(options) {
|
|
687
|
+
var FronteggAdminPortal;
|
|
688
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee10$(_context10) {
|
|
689
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
690
|
+
case 0:
|
|
691
|
+
_context10.next = 2;
|
|
692
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
693
|
+
case 2:
|
|
694
|
+
FronteggAdminPortal = _context10.sent;
|
|
695
|
+
return _context10.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
|
|
696
|
+
case 4:
|
|
697
|
+
case "end":
|
|
698
|
+
return _context10.stop();
|
|
699
|
+
}
|
|
700
|
+
}, _callee10);
|
|
701
|
+
}));
|
|
702
|
+
return function (_x17) {
|
|
703
|
+
return _ref10.apply(this, arguments);
|
|
704
|
+
};
|
|
705
|
+
}();
|
|
679
706
|
var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.formatName)(name);
|
|
680
707
|
var customElementName = "frontegg-app-".concat(appName);
|
|
681
708
|
this.iframeRendering = iframeRendering;
|
|
@@ -768,9 +795,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
768
795
|
}, {
|
|
769
796
|
key: "initContainers",
|
|
770
797
|
value: function () {
|
|
771
|
-
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
772
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
773
|
-
while (1) switch (
|
|
798
|
+
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee11(elements) {
|
|
799
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee11$(_context11) {
|
|
800
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
774
801
|
case 0:
|
|
775
802
|
this.adminPortalEl = elements.adminPortalEl;
|
|
776
803
|
this.loginBoxEl = elements.loginBoxEl;
|
|
@@ -785,7 +812,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
785
812
|
} catch (e) {
|
|
786
813
|
console.error('Failed to add frontegg-loading to body classList');
|
|
787
814
|
}
|
|
788
|
-
|
|
815
|
+
_context11.next = 9;
|
|
789
816
|
return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
|
|
790
817
|
case 9:
|
|
791
818
|
if (!this.options.previewMode && !this.options.customLoginBox) {
|
|
@@ -797,11 +824,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
797
824
|
}
|
|
798
825
|
case 11:
|
|
799
826
|
case "end":
|
|
800
|
-
return
|
|
827
|
+
return _context11.stop();
|
|
801
828
|
}
|
|
802
|
-
},
|
|
829
|
+
}, _callee11, this);
|
|
803
830
|
}));
|
|
804
|
-
function initContainers(
|
|
831
|
+
function initContainers(_x18) {
|
|
805
832
|
return _initContainers.apply(this, arguments);
|
|
806
833
|
}
|
|
807
834
|
return initContainers;
|
|
@@ -916,15 +943,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
916
943
|
}, {
|
|
917
944
|
key: "loadLoginBox",
|
|
918
945
|
value: function () {
|
|
919
|
-
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
946
|
+
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee12() {
|
|
920
947
|
var FronteggLoginBox;
|
|
921
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
922
|
-
while (1) switch (
|
|
948
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee12$(_context12) {
|
|
949
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
923
950
|
case 0:
|
|
924
|
-
|
|
951
|
+
_context12.next = 2;
|
|
925
952
|
return this.loadScript('FronteggLoginBox');
|
|
926
953
|
case 2:
|
|
927
|
-
FronteggLoginBox =
|
|
954
|
+
FronteggLoginBox = _context12.sent;
|
|
928
955
|
FronteggLoginBox.render(this.loginBoxEl, {
|
|
929
956
|
injector: this,
|
|
930
957
|
options: this.options
|
|
@@ -940,9 +967,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
940
967
|
this.loadingListeners = [];
|
|
941
968
|
case 7:
|
|
942
969
|
case "end":
|
|
943
|
-
return
|
|
970
|
+
return _context12.stop();
|
|
944
971
|
}
|
|
945
|
-
},
|
|
972
|
+
}, _callee12, this);
|
|
946
973
|
}));
|
|
947
974
|
function loadLoginBox() {
|
|
948
975
|
return _loadLoginBox.apply(this, arguments);
|
|
@@ -952,20 +979,20 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
952
979
|
}, {
|
|
953
980
|
key: "showAdminPortal",
|
|
954
981
|
value: function () {
|
|
955
|
-
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
956
|
-
var
|
|
957
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
958
|
-
while (1) switch (
|
|
982
|
+
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee13(options) {
|
|
983
|
+
var _ref11, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
|
|
984
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee13$(_context13) {
|
|
985
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
959
986
|
case 0:
|
|
960
|
-
|
|
987
|
+
_ref11 = options != null ? options : {
|
|
961
988
|
isMultiApp: false
|
|
962
|
-
}, isMultiApp =
|
|
989
|
+
}, isMultiApp = _ref11.isMultiApp;
|
|
963
990
|
_this$queryFeatureFla = this.queryFeatureFlags(['multi-apps-admin-portal']), _this$queryFeatureFla2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$queryFeatureFla, 1), multiAppsFlag = _this$queryFeatureFla2[0];
|
|
964
991
|
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
|
|
965
|
-
|
|
992
|
+
_context13.next = 5;
|
|
966
993
|
return this.loadScript('FronteggAdminPortal');
|
|
967
994
|
case 5:
|
|
968
|
-
FronteggAdminPortal =
|
|
995
|
+
FronteggAdminPortal = _context13.sent;
|
|
969
996
|
this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
|
|
970
997
|
injector: this,
|
|
971
998
|
options: Object.assign({
|
|
@@ -974,11 +1001,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
974
1001
|
});
|
|
975
1002
|
case 7:
|
|
976
1003
|
case "end":
|
|
977
|
-
return
|
|
1004
|
+
return _context13.stop();
|
|
978
1005
|
}
|
|
979
|
-
},
|
|
1006
|
+
}, _callee13, this);
|
|
980
1007
|
}));
|
|
981
|
-
function showAdminPortal(
|
|
1008
|
+
function showAdminPortal(_x19) {
|
|
982
1009
|
return _showAdminPortal.apply(this, arguments);
|
|
983
1010
|
}
|
|
984
1011
|
return showAdminPortal;
|
|
@@ -1017,15 +1044,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1017
1044
|
}, {
|
|
1018
1045
|
key: "showCheckoutDialog",
|
|
1019
1046
|
value: function () {
|
|
1020
|
-
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
1047
|
+
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee14(opts) {
|
|
1021
1048
|
var FronteggAdminPortal;
|
|
1022
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
1023
|
-
while (1) switch (
|
|
1049
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee14$(_context14) {
|
|
1050
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1024
1051
|
case 0:
|
|
1025
|
-
|
|
1052
|
+
_context14.next = 2;
|
|
1026
1053
|
return this.loadScript('FronteggAdminPortal');
|
|
1027
1054
|
case 2:
|
|
1028
|
-
FronteggAdminPortal =
|
|
1055
|
+
FronteggAdminPortal = _context14.sent;
|
|
1029
1056
|
this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, Object.assign({
|
|
1030
1057
|
injector: this
|
|
1031
1058
|
}, opts, {
|
|
@@ -1033,11 +1060,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1033
1060
|
}));
|
|
1034
1061
|
case 4:
|
|
1035
1062
|
case "end":
|
|
1036
|
-
return
|
|
1063
|
+
return _context14.stop();
|
|
1037
1064
|
}
|
|
1038
|
-
},
|
|
1065
|
+
}, _callee14, this);
|
|
1039
1066
|
}));
|
|
1040
|
-
function showCheckoutDialog(
|
|
1067
|
+
function showCheckoutDialog(_x20) {
|
|
1041
1068
|
return _showCheckoutDialog.apply(this, arguments);
|
|
1042
1069
|
}
|
|
1043
1070
|
return showCheckoutDialog;
|
|
@@ -1126,9 +1153,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1126
1153
|
key: "stepUp",
|
|
1127
1154
|
value: function stepUp(options) {
|
|
1128
1155
|
var state = this.store.getState();
|
|
1129
|
-
var
|
|
1130
|
-
hostedLoginBox =
|
|
1131
|
-
stepUpUrl =
|
|
1156
|
+
var _ref12 = (state == null ? void 0 : state.auth) || {},
|
|
1157
|
+
hostedLoginBox = _ref12.hostedLoginBox,
|
|
1158
|
+
stepUpUrl = _ref12.routes.stepUpUrl;
|
|
1132
1159
|
if (hostedLoginBox) {
|
|
1133
1160
|
this.store.dispatch({
|
|
1134
1161
|
type: 'auth/stepUpHostedLogin',
|
|
@@ -1148,8 +1175,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1148
1175
|
value: function isSteppedUp() {
|
|
1149
1176
|
var _this$store$getState;
|
|
1150
1177
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1151
|
-
var
|
|
1152
|
-
user =
|
|
1178
|
+
var _ref13 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
|
|
1179
|
+
user = _ref13.user;
|
|
1153
1180
|
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_23__.isSteppedUp)(user, options);
|
|
1154
1181
|
}
|
|
1155
1182
|
|
|
@@ -1780,7 +1807,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1780
1807
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1781
1808
|
/* harmony export */ });
|
|
1782
1809
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1783
|
-
cdnVersion: '7.
|
|
1810
|
+
cdnVersion: '7.76.0-alpha.1'
|
|
1784
1811
|
});
|
|
1785
1812
|
|
|
1786
1813
|
/***/ }),
|
|
@@ -4016,6 +4043,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4016
4043
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4017
4044
|
/* harmony export */ });
|
|
4018
4045
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
4046
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
4019
4047
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
|
|
4020
4048
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/state.js");
|
|
4021
4049
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
@@ -4025,6 +4053,7 @@ const _excluded = ["callback"];
|
|
|
4025
4053
|
|
|
4026
4054
|
|
|
4027
4055
|
|
|
4056
|
+
|
|
4028
4057
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
4029
4058
|
const actions = sharedActions;
|
|
4030
4059
|
const setForgotPasswordState = payload => {
|
|
@@ -4055,6 +4084,45 @@ const _excluded = ["callback"];
|
|
|
4055
4084
|
(_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload, false, e);
|
|
4056
4085
|
}
|
|
4057
4086
|
};
|
|
4087
|
+
const determinePasswordRecoveryStrategy = async payload => {
|
|
4088
|
+
setForgotPasswordState({
|
|
4089
|
+
loading: true,
|
|
4090
|
+
error: undefined,
|
|
4091
|
+
identifier: payload.identifier
|
|
4092
|
+
});
|
|
4093
|
+
try {
|
|
4094
|
+
const strategies = await api.auth.getPasswordRecoveryStrategies();
|
|
4095
|
+
const isEmailActive = strategies.some(s => s.strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.PasswordRecoveryStrategyEnum.Email && s.isActive);
|
|
4096
|
+
const isSmsActive = strategies.some(s => s.strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.PasswordRecoveryStrategyEnum.Sms && s.isActive);
|
|
4097
|
+
if (isEmailActive && isSmsActive) {
|
|
4098
|
+
setForgotPasswordState({
|
|
4099
|
+
loading: false,
|
|
4100
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_3__.ForgotPasswordStep.passwordRecoverySelector
|
|
4101
|
+
});
|
|
4102
|
+
} else if (isEmailActive) {
|
|
4103
|
+
await forgotPassword({
|
|
4104
|
+
email: payload.identifier,
|
|
4105
|
+
recaptchaToken: payload.recaptchaToken
|
|
4106
|
+
});
|
|
4107
|
+
} else if (isSmsActive) {
|
|
4108
|
+
setForgotPasswordState({
|
|
4109
|
+
loading: false,
|
|
4110
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_3__.ForgotPasswordStep.resetPasswordViaSms
|
|
4111
|
+
});
|
|
4112
|
+
} else {
|
|
4113
|
+
const error = 'No active password recovery methods found.';
|
|
4114
|
+
setForgotPasswordState({
|
|
4115
|
+
loading: false,
|
|
4116
|
+
error
|
|
4117
|
+
});
|
|
4118
|
+
}
|
|
4119
|
+
} catch (e) {
|
|
4120
|
+
setForgotPasswordState({
|
|
4121
|
+
loading: false,
|
|
4122
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e, 'An error occurred while determining recovery strategy')
|
|
4123
|
+
});
|
|
4124
|
+
}
|
|
4125
|
+
};
|
|
4058
4126
|
const resetPassword = async payload => {
|
|
4059
4127
|
const {
|
|
4060
4128
|
callback
|
|
@@ -4101,7 +4169,8 @@ const _excluded = ["callback"];
|
|
|
4101
4169
|
resetForgotPasswordState,
|
|
4102
4170
|
forgotPassword,
|
|
4103
4171
|
resetPassword,
|
|
4104
|
-
loadPasswordConfig
|
|
4172
|
+
loadPasswordConfig,
|
|
4173
|
+
determinePasswordRecoveryStrategy
|
|
4105
4174
|
};
|
|
4106
4175
|
});
|
|
4107
4176
|
|
|
@@ -4121,6 +4190,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4121
4190
|
let ForgotPasswordStep;
|
|
4122
4191
|
(function (ForgotPasswordStep) {
|
|
4123
4192
|
ForgotPasswordStep["forgotPassword"] = "forgotPassword";
|
|
4193
|
+
ForgotPasswordStep["resetPasswordViaSms"] = "resetPasswordViaSms";
|
|
4194
|
+
ForgotPasswordStep["passwordRecoverySelector"] = "passwordRecoverySelector";
|
|
4195
|
+
ForgotPasswordStep["resetPasswordPage"] = "resetPasswordPage";
|
|
4124
4196
|
ForgotPasswordStep["success"] = "success";
|
|
4125
4197
|
})(ForgotPasswordStep || (ForgotPasswordStep = {}));
|
|
4126
4198
|
|
|
@@ -4145,7 +4217,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4145
4217
|
const initialState = {
|
|
4146
4218
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_0__.ForgotPasswordStep.forgotPassword,
|
|
4147
4219
|
loading: false,
|
|
4148
|
-
|
|
4220
|
+
identifier: '',
|
|
4149
4221
|
passwordConfig: null
|
|
4150
4222
|
};
|
|
4151
4223
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_1__.createProxy)(initialState, overrideState));
|
|
@@ -5139,7 +5211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5139
5211
|
const postHandleVerifyMFAResponseForLogin = async (isAuthenticated, user) => {
|
|
5140
5212
|
const loginState = store.auth.loginState;
|
|
5141
5213
|
const mfaStep = store.auth.mfaState.step;
|
|
5142
|
-
const [securityCenterLoginFlows
|
|
5214
|
+
const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
|
|
5143
5215
|
if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginFlow.Login) {
|
|
5144
5216
|
if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
|
|
5145
5217
|
actions.setLoginState({
|
|
@@ -5148,7 +5220,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5148
5220
|
});
|
|
5149
5221
|
return;
|
|
5150
5222
|
}
|
|
5151
|
-
if (
|
|
5223
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_2__.isResetPasswordRequired)(user, store.root.appName)) {
|
|
5152
5224
|
actions.setLoginState({
|
|
5153
5225
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.passwordRotationExpired,
|
|
5154
5226
|
loading: false,
|
|
@@ -5157,7 +5229,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5157
5229
|
});
|
|
5158
5230
|
return;
|
|
5159
5231
|
}
|
|
5160
|
-
if (
|
|
5232
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.shouldShowPasswordRotationPromptFunc)(user)) {
|
|
5161
5233
|
actions.setLoginState({
|
|
5162
5234
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.passwordRotationNotification,
|
|
5163
5235
|
loading: false
|
|
@@ -5834,6 +5906,7 @@ const _excluded = ["callback", "error"],
|
|
|
5834
5906
|
const preLogin = async payload => {
|
|
5835
5907
|
const {
|
|
5836
5908
|
email,
|
|
5909
|
+
username,
|
|
5837
5910
|
recaptchaToken,
|
|
5838
5911
|
invitationToken,
|
|
5839
5912
|
callback
|
|
@@ -5844,10 +5917,13 @@ const _excluded = ["callback", "error"],
|
|
|
5844
5917
|
try {
|
|
5845
5918
|
const onRedirectTo = store.auth.onRedirectTo;
|
|
5846
5919
|
const tenantId = (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.getSearchParam)(_helpers__WEBPACK_IMPORTED_MODULE_12__.TENANT_ID_PARAM_KEY);
|
|
5847
|
-
const preLoginResult = await api.auth.preLoginV2({
|
|
5848
|
-
email
|
|
5920
|
+
const preLoginResult = await api.auth.preLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
5921
|
+
email
|
|
5922
|
+
} : {}, username ? {
|
|
5923
|
+
username
|
|
5924
|
+
} : {}, {
|
|
5849
5925
|
tenantId
|
|
5850
|
-
});
|
|
5926
|
+
}));
|
|
5851
5927
|
const {
|
|
5852
5928
|
address,
|
|
5853
5929
|
idpType
|
|
@@ -5861,7 +5937,8 @@ const _excluded = ["callback", "error"],
|
|
|
5861
5937
|
ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
|
|
5862
5938
|
}
|
|
5863
5939
|
if (_toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].isLoginWithSSOAvailable()) {
|
|
5864
|
-
|
|
5940
|
+
var _ref4;
|
|
5941
|
+
_toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].loginWithSSO((_ref4 = email != null ? email : username) != null ? _ref4 : '');
|
|
5865
5942
|
setLoginState({
|
|
5866
5943
|
loading: false
|
|
5867
5944
|
});
|
|
@@ -5879,16 +5956,18 @@ const _excluded = ["callback", "error"],
|
|
|
5879
5956
|
}, 2000);
|
|
5880
5957
|
}
|
|
5881
5958
|
} else {
|
|
5959
|
+
var _ref5;
|
|
5882
5960
|
await ssoPreloginFailed({
|
|
5883
|
-
email,
|
|
5961
|
+
email: (_ref5 = email != null ? email : username) != null ? _ref5 : '',
|
|
5884
5962
|
recaptchaToken,
|
|
5885
5963
|
callback,
|
|
5886
5964
|
invitationToken
|
|
5887
5965
|
});
|
|
5888
5966
|
}
|
|
5889
5967
|
} catch (e) {
|
|
5968
|
+
var _ref6;
|
|
5890
5969
|
await ssoPreloginFailed({
|
|
5891
|
-
email,
|
|
5970
|
+
email: (_ref6 = email != null ? email : username) != null ? _ref6 : '',
|
|
5892
5971
|
recaptchaToken,
|
|
5893
5972
|
callback,
|
|
5894
5973
|
invitationToken,
|
|
@@ -5924,6 +6003,7 @@ const _excluded = ["callback", "error"],
|
|
|
5924
6003
|
const login = async payload => {
|
|
5925
6004
|
const {
|
|
5926
6005
|
email,
|
|
6006
|
+
username,
|
|
5927
6007
|
password,
|
|
5928
6008
|
recaptchaToken,
|
|
5929
6009
|
invitationToken,
|
|
@@ -5937,12 +6017,15 @@ const _excluded = ["callback", "error"],
|
|
|
5937
6017
|
user,
|
|
5938
6018
|
tenants = [],
|
|
5939
6019
|
activeTenant
|
|
5940
|
-
} = await api.auth.loginv2({
|
|
5941
|
-
email
|
|
6020
|
+
} = await api.auth.loginv2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
6021
|
+
email
|
|
6022
|
+
} : {}, username ? {
|
|
6023
|
+
username
|
|
6024
|
+
} : {}, {
|
|
5942
6025
|
password,
|
|
5943
6026
|
recaptchaToken,
|
|
5944
6027
|
invitationToken
|
|
5945
|
-
});
|
|
6028
|
+
}));
|
|
5946
6029
|
const {
|
|
5947
6030
|
onRedirectTo,
|
|
5948
6031
|
routes
|
|
@@ -5954,8 +6037,8 @@ const _excluded = ["callback", "error"],
|
|
|
5954
6037
|
preserveQueryParams: true
|
|
5955
6038
|
});
|
|
5956
6039
|
} else {
|
|
5957
|
-
const [securityCenterLoginFlows
|
|
5958
|
-
if (
|
|
6040
|
+
const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
|
|
6041
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
|
|
5959
6042
|
setLoginState({
|
|
5960
6043
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationExpired,
|
|
5961
6044
|
loading: false,
|
|
@@ -5996,7 +6079,7 @@ const _excluded = ["callback", "error"],
|
|
|
5996
6079
|
} else {
|
|
5997
6080
|
if (isAuthenticated) {
|
|
5998
6081
|
const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.shouldShowPasswordRotationPromptFunc)(user);
|
|
5999
|
-
if (
|
|
6082
|
+
if (shouldShowPasswordRotationPrompt) {
|
|
6000
6083
|
setLoginState({
|
|
6001
6084
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationNotification,
|
|
6002
6085
|
loading: false
|
|
@@ -6182,6 +6265,7 @@ const _excluded = ["callback", "error"],
|
|
|
6182
6265
|
} = _payload,
|
|
6183
6266
|
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded5);
|
|
6184
6267
|
try {
|
|
6268
|
+
var _username;
|
|
6185
6269
|
setLoginState({
|
|
6186
6270
|
loading: true
|
|
6187
6271
|
});
|
|
@@ -6189,9 +6273,16 @@ const _excluded = ["callback", "error"],
|
|
|
6189
6273
|
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isEmailPayload)(payload)) {
|
|
6190
6274
|
email = payload.email;
|
|
6191
6275
|
}
|
|
6276
|
+
let username;
|
|
6277
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isUsernamePayload)(payload)) {
|
|
6278
|
+
username = payload.username;
|
|
6279
|
+
}
|
|
6192
6280
|
// TODO: [Typescript 4.8] fix @frontegg/rest-api return value
|
|
6193
6281
|
// @ts-ignore
|
|
6194
|
-
const preloginRes = await api.auth.passwordlessPreLogin(payload
|
|
6282
|
+
const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
6283
|
+
email,
|
|
6284
|
+
username: (_username = username) != null ? _username : ''
|
|
6285
|
+
}));
|
|
6195
6286
|
// @ts-ignore
|
|
6196
6287
|
const step = _consts__WEBPACK_IMPORTED_MODULE_16__.authStrategyLoginStepMap[payload.type];
|
|
6197
6288
|
setLoginState({
|
|
@@ -6783,11 +6874,11 @@ const _excluded = ["callback", "error"],
|
|
|
6783
6874
|
preserveQueryParams: true
|
|
6784
6875
|
});
|
|
6785
6876
|
} else {
|
|
6786
|
-
var
|
|
6877
|
+
var _ref7;
|
|
6787
6878
|
if (user.id) {
|
|
6788
6879
|
localStorage.setItem('userId', user.id);
|
|
6789
6880
|
}
|
|
6790
|
-
const quickLoginToRegister = (
|
|
6881
|
+
const quickLoginToRegister = (_ref7 = localStorage.getItem('register-quick-login')) != null ? _ref7 : loginState.quickLoginToRegister;
|
|
6791
6882
|
const shouldNavigateToRegisterQuickLogin = __shouldNavigateToRegisterQuickLogin(user);
|
|
6792
6883
|
actions.afterAuthenticationStateUpdate({
|
|
6793
6884
|
user: updatedUser,
|
|
@@ -7011,7 +7102,7 @@ const _excluded = ["callback"];
|
|
|
7011
7102
|
async function __postLoginMfaAuthenticator(isAuthenticated, user, callback) {
|
|
7012
7103
|
const loginState = store.auth.loginState;
|
|
7013
7104
|
if (loginState.flow !== _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginFlow.Login) return;
|
|
7014
|
-
const [securityCenterLoginFlows
|
|
7105
|
+
const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
|
|
7015
7106
|
if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
|
|
7016
7107
|
actions.setLoginState({
|
|
7017
7108
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.breachedPassword,
|
|
@@ -7020,7 +7111,7 @@ const _excluded = ["callback"];
|
|
|
7020
7111
|
callback == null ? void 0 : callback(true);
|
|
7021
7112
|
return;
|
|
7022
7113
|
}
|
|
7023
|
-
if (
|
|
7114
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
|
|
7024
7115
|
actions.setLoginState({
|
|
7025
7116
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.passwordRotationExpired,
|
|
7026
7117
|
loading: false,
|
|
@@ -7031,7 +7122,7 @@ const _excluded = ["callback"];
|
|
|
7031
7122
|
return;
|
|
7032
7123
|
}
|
|
7033
7124
|
const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.shouldShowPasswordRotationPromptFunc)(user);
|
|
7034
|
-
if (
|
|
7125
|
+
if (shouldShowPasswordRotationPrompt) {
|
|
7035
7126
|
actions.setLoginState({
|
|
7036
7127
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.passwordRotationNotification,
|
|
7037
7128
|
loading: false
|
|
@@ -7589,6 +7680,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7589
7680
|
/* harmony export */ isAbsoluteUrl: () => (/* binding */ isAbsoluteUrl),
|
|
7590
7681
|
/* harmony export */ isEmailPayload: () => (/* binding */ isEmailPayload),
|
|
7591
7682
|
/* harmony export */ isOauthCallbackRoute: () => (/* binding */ isOauthCallbackRoute),
|
|
7683
|
+
/* harmony export */ isUsernamePayload: () => (/* binding */ isUsernamePayload),
|
|
7592
7684
|
/* harmony export */ shouldShowPasswordRotationPromptFunc: () => (/* binding */ shouldShowPasswordRotationPromptFunc)
|
|
7593
7685
|
/* harmony export */ });
|
|
7594
7686
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
|
|
@@ -7720,7 +7812,10 @@ const isOauthCallbackRoute = activeUri => {
|
|
|
7720
7812
|
return activeUri === '/oauth/callback';
|
|
7721
7813
|
};
|
|
7722
7814
|
function isEmailPayload(payload) {
|
|
7723
|
-
return 'email' in payload;
|
|
7815
|
+
return 'email' in payload && typeof payload['email'] === 'string';
|
|
7816
|
+
}
|
|
7817
|
+
function isUsernamePayload(payload) {
|
|
7818
|
+
return 'username' in payload && typeof payload['username'] === 'string';
|
|
7724
7819
|
}
|
|
7725
7820
|
const getBaseNameWithoutSlashSuffix = state => {
|
|
7726
7821
|
const basename = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.ContextHolder.for(state.root.appName).getBasename();
|
|
@@ -16353,6 +16448,147 @@ const initialState = {
|
|
|
16353
16448
|
|
|
16354
16449
|
/***/ }),
|
|
16355
16450
|
|
|
16451
|
+
/***/ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js":
|
|
16452
|
+
/*!***********************************************************************!*\
|
|
16453
|
+
!*** ../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js ***!
|
|
16454
|
+
\***********************************************************************/
|
|
16455
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16456
|
+
|
|
16457
|
+
"use strict";
|
|
16458
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16459
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16460
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16461
|
+
/* harmony export */ });
|
|
16462
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
16463
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
16464
|
+
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js");
|
|
16465
|
+
|
|
16466
|
+
|
|
16467
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
16468
|
+
const setUsernamesState = state => {
|
|
16469
|
+
Object.assign(store.auth.usernamesState, state);
|
|
16470
|
+
};
|
|
16471
|
+
const resetUsernamesState = () => {
|
|
16472
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_0__.deepResetState)(store, ['auth', 'usernamesState'], _state__WEBPACK_IMPORTED_MODULE_1__.initialState);
|
|
16473
|
+
};
|
|
16474
|
+
const loadUserOwnUsername = async () => {
|
|
16475
|
+
setUsernamesState({
|
|
16476
|
+
loading: true
|
|
16477
|
+
});
|
|
16478
|
+
try {
|
|
16479
|
+
const response = await api.usernames.getUserOwnUsername();
|
|
16480
|
+
setUsernamesState({
|
|
16481
|
+
username: response == null ? void 0 : response.username,
|
|
16482
|
+
loading: false,
|
|
16483
|
+
fetching: false
|
|
16484
|
+
});
|
|
16485
|
+
} catch (e) {
|
|
16486
|
+
setUsernamesState({
|
|
16487
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e),
|
|
16488
|
+
fetching: false
|
|
16489
|
+
});
|
|
16490
|
+
} finally {
|
|
16491
|
+
setUsernamesState({
|
|
16492
|
+
loading: false,
|
|
16493
|
+
fetching: false
|
|
16494
|
+
});
|
|
16495
|
+
}
|
|
16496
|
+
};
|
|
16497
|
+
const saveUserUsername = async payload => {
|
|
16498
|
+
setUsernamesState({
|
|
16499
|
+
loading: true
|
|
16500
|
+
});
|
|
16501
|
+
try {
|
|
16502
|
+
if (store.auth.usernamesState.username === payload.username) {
|
|
16503
|
+
var _payload$callback;
|
|
16504
|
+
(_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload);
|
|
16505
|
+
return;
|
|
16506
|
+
}
|
|
16507
|
+
if (store.auth.usernamesState.username && store.auth.usernamesState.username !== payload.username) {
|
|
16508
|
+
await deleteUserUsername(store.auth.usernamesState.username);
|
|
16509
|
+
if (!payload.username) {
|
|
16510
|
+
var _payload$callback2;
|
|
16511
|
+
setUsernamesState({
|
|
16512
|
+
username: undefined,
|
|
16513
|
+
loading: false
|
|
16514
|
+
});
|
|
16515
|
+
(_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload);
|
|
16516
|
+
return;
|
|
16517
|
+
}
|
|
16518
|
+
}
|
|
16519
|
+
if (!!payload.username) {
|
|
16520
|
+
var _payload$callback3;
|
|
16521
|
+
await api.usernames.createUsername(payload);
|
|
16522
|
+
setUsernamesState({
|
|
16523
|
+
username: payload.username,
|
|
16524
|
+
loading: false
|
|
16525
|
+
});
|
|
16526
|
+
(_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload);
|
|
16527
|
+
}
|
|
16528
|
+
} catch (e) {
|
|
16529
|
+
setUsernamesState({
|
|
16530
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e)
|
|
16531
|
+
});
|
|
16532
|
+
} finally {
|
|
16533
|
+
setUsernamesState({
|
|
16534
|
+
loading: false
|
|
16535
|
+
});
|
|
16536
|
+
}
|
|
16537
|
+
};
|
|
16538
|
+
const deleteUserUsername = async username => {
|
|
16539
|
+
setUsernamesState({
|
|
16540
|
+
loading: true
|
|
16541
|
+
});
|
|
16542
|
+
try {
|
|
16543
|
+
await api.usernames.deleteUsername(username);
|
|
16544
|
+
setUsernamesState({
|
|
16545
|
+
username: undefined,
|
|
16546
|
+
loading: false
|
|
16547
|
+
});
|
|
16548
|
+
} catch (e) {
|
|
16549
|
+
setUsernamesState({
|
|
16550
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e)
|
|
16551
|
+
});
|
|
16552
|
+
} finally {
|
|
16553
|
+
setUsernamesState({
|
|
16554
|
+
loading: false
|
|
16555
|
+
});
|
|
16556
|
+
}
|
|
16557
|
+
};
|
|
16558
|
+
return {
|
|
16559
|
+
resetUsernamesState,
|
|
16560
|
+
loadUserOwnUsername,
|
|
16561
|
+
saveUserUsername,
|
|
16562
|
+
deleteUserUsername
|
|
16563
|
+
};
|
|
16564
|
+
});
|
|
16565
|
+
|
|
16566
|
+
/***/ }),
|
|
16567
|
+
|
|
16568
|
+
/***/ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js":
|
|
16569
|
+
/*!*********************************************************************!*\
|
|
16570
|
+
!*** ../../dist/@frontegg/redux-store/auth/UsernamesState/state.js ***!
|
|
16571
|
+
\*********************************************************************/
|
|
16572
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16573
|
+
|
|
16574
|
+
"use strict";
|
|
16575
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16576
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16577
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
16578
|
+
/* harmony export */ initialState: () => (/* binding */ initialState)
|
|
16579
|
+
/* harmony export */ });
|
|
16580
|
+
/* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
|
|
16581
|
+
|
|
16582
|
+
const initialState = {
|
|
16583
|
+
loading: false,
|
|
16584
|
+
error: null,
|
|
16585
|
+
username: undefined,
|
|
16586
|
+
fetching: true
|
|
16587
|
+
};
|
|
16588
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_0__.createProxy)(initialState, overrideState));
|
|
16589
|
+
|
|
16590
|
+
/***/ }),
|
|
16591
|
+
|
|
16356
16592
|
/***/ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js":
|
|
16357
16593
|
/*!*******************************************************************************!*\
|
|
16358
16594
|
!*** ../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js ***!
|
|
@@ -16466,6 +16702,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16466
16702
|
/* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
|
|
16467
16703
|
/* harmony export */ isResetPasswordRequired: () => (/* binding */ isResetPasswordRequired),
|
|
16468
16704
|
/* harmony export */ isSteppedUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.isSteppedUp),
|
|
16705
|
+
/* harmony export */ isUsernamePayload: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
|
|
16469
16706
|
/* harmony export */ mapMetaDataObjectToActions: () => (/* binding */ mapMetaDataObjectToActions),
|
|
16470
16707
|
/* harmony export */ prepareIdentifiersForSignup: () => (/* binding */ prepareIdentifiersForSignup),
|
|
16471
16708
|
/* harmony export */ redirectByStepUpUrl: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.redirectByStepUpUrl),
|
|
@@ -16608,76 +16845,78 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16608
16845
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
16609
16846
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
16610
16847
|
/* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/state.js");
|
|
16611
|
-
/* harmony import */ var
|
|
16848
|
+
/* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/actions.js");
|
|
16612
16849
|
/* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/state.js");
|
|
16613
|
-
/* harmony import */ var
|
|
16850
|
+
/* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/actions.js");
|
|
16614
16851
|
/* harmony import */ var _ActivateAccountState__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ActivateAccountState */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/state.js");
|
|
16615
|
-
/* harmony import */ var
|
|
16852
|
+
/* harmony import */ var _ActivateAccountState__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./ActivateAccountState */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/actions.js");
|
|
16616
16853
|
/* harmony import */ var _UnlockAccountState__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./UnlockAccountState */ "../../dist/@frontegg/redux-store/auth/UnlockAccountState/state.js");
|
|
16617
|
-
/* harmony import */ var
|
|
16854
|
+
/* harmony import */ var _UnlockAccountState__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./UnlockAccountState */ "../../dist/@frontegg/redux-store/auth/UnlockAccountState/actions.js");
|
|
16618
16855
|
/* harmony import */ var _ApiTokensState__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ApiTokensState */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/state.js");
|
|
16619
|
-
/* harmony import */ var
|
|
16856
|
+
/* harmony import */ var _ApiTokensState__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./ApiTokensState */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/actions.js");
|
|
16620
16857
|
/* harmony import */ var _ApplicationsState__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ApplicationsState */ "../../dist/@frontegg/redux-store/auth/ApplicationsState/state.js");
|
|
16621
|
-
/* harmony import */ var
|
|
16858
|
+
/* harmony import */ var _ApplicationsState__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./ApplicationsState */ "../../dist/@frontegg/redux-store/auth/ApplicationsState/actions.js");
|
|
16622
16859
|
/* harmony import */ var _CustomLoginState__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./CustomLoginState */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/state.js");
|
|
16623
|
-
/* harmony import */ var
|
|
16860
|
+
/* harmony import */ var _CustomLoginState__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./CustomLoginState */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/actions.js");
|
|
16624
16861
|
/* harmony import */ var _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ForgotPasswordState */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/state.js");
|
|
16625
|
-
/* harmony import */ var
|
|
16862
|
+
/* harmony import */ var _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./ForgotPasswordState */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/actions.js");
|
|
16626
16863
|
/* harmony import */ var _PasswordRotationState__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./PasswordRotationState */ "../../dist/@frontegg/redux-store/auth/PasswordRotationState/state.js");
|
|
16627
|
-
/* harmony import */ var
|
|
16864
|
+
/* harmony import */ var _PasswordRotationState__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./PasswordRotationState */ "../../dist/@frontegg/redux-store/auth/PasswordRotationState/actions.js");
|
|
16628
16865
|
/* harmony import */ var _GroupsState__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./GroupsState */ "../../dist/@frontegg/redux-store/auth/GroupsState/state.js");
|
|
16629
|
-
/* harmony import */ var
|
|
16866
|
+
/* harmony import */ var _GroupsState__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./GroupsState */ "../../dist/@frontegg/redux-store/auth/GroupsState/actions.js");
|
|
16630
16867
|
/* harmony import */ var _GroupsDialogsState__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./GroupsDialogsState */ "../../dist/@frontegg/redux-store/auth/GroupsDialogsState/state.js");
|
|
16631
|
-
/* harmony import */ var
|
|
16868
|
+
/* harmony import */ var _GroupsDialogsState__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./GroupsDialogsState */ "../../dist/@frontegg/redux-store/auth/GroupsDialogsState/actions.js");
|
|
16632
16869
|
/* harmony import */ var _ImpersonateState__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./ImpersonateState */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/state.js");
|
|
16633
|
-
/* harmony import */ var
|
|
16870
|
+
/* harmony import */ var _ImpersonateState__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./ImpersonateState */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/actions.js");
|
|
16634
16871
|
/* harmony import */ var _LoginState__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./LoginState */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
|
|
16635
|
-
/* harmony import */ var
|
|
16872
|
+
/* harmony import */ var _LoginState__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./LoginState */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/index.js");
|
|
16636
16873
|
/* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/state.js");
|
|
16637
|
-
/* harmony import */ var
|
|
16874
|
+
/* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/actions.js");
|
|
16638
16875
|
/* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/state.js");
|
|
16639
16876
|
/* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/state.js");
|
|
16640
|
-
/* harmony import */ var
|
|
16641
|
-
/* harmony import */ var
|
|
16877
|
+
/* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
|
|
16878
|
+
/* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/actions.js");
|
|
16642
16879
|
/* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/state.js");
|
|
16643
|
-
/* harmony import */ var
|
|
16880
|
+
/* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/actions.js");
|
|
16644
16881
|
/* harmony import */ var _ProfileState__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ProfileState */ "../../dist/@frontegg/redux-store/auth/ProfileState/state.js");
|
|
16645
|
-
/* harmony import */ var
|
|
16882
|
+
/* harmony import */ var _ProfileState__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./ProfileState */ "../../dist/@frontegg/redux-store/auth/ProfileState/actions.js");
|
|
16646
16883
|
/* harmony import */ var _ProvisioningState__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ProvisioningState */ "../../dist/@frontegg/redux-store/auth/ProvisioningState/state.js");
|
|
16647
|
-
/* harmony import */ var
|
|
16884
|
+
/* harmony import */ var _ProvisioningState__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./ProvisioningState */ "../../dist/@frontegg/redux-store/auth/ProvisioningState/actions.js");
|
|
16648
16885
|
/* harmony import */ var _ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ResetPhoneNumberState */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/state.js");
|
|
16649
|
-
/* harmony import */ var
|
|
16886
|
+
/* harmony import */ var _ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./ResetPhoneNumberState */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/actions.js");
|
|
16650
16887
|
/* harmony import */ var _RolesState__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./RolesState */ "../../dist/@frontegg/redux-store/auth/RolesState/state.js");
|
|
16651
|
-
/* harmony import */ var
|
|
16888
|
+
/* harmony import */ var _RolesState__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./RolesState */ "../../dist/@frontegg/redux-store/auth/RolesState/actions.js");
|
|
16652
16889
|
/* harmony import */ var _Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./Security/RestrictionsState */ "../../dist/@frontegg/redux-store/auth/Security/RestrictionsState/state.js");
|
|
16653
|
-
/* harmony import */ var
|
|
16890
|
+
/* harmony import */ var _Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./Security/RestrictionsState */ "../../dist/@frontegg/redux-store/auth/Security/RestrictionsState/actions.js");
|
|
16654
16891
|
/* harmony import */ var _Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./Security/SecurityCenterState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/state.js");
|
|
16655
|
-
/* harmony import */ var
|
|
16892
|
+
/* harmony import */ var _Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./Security/SecurityCenterState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/actions.js");
|
|
16656
16893
|
/* harmony import */ var _Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./Security/SecurityPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/state.js");
|
|
16657
|
-
/* harmony import */ var
|
|
16894
|
+
/* harmony import */ var _Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./Security/SecurityPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/actions.js");
|
|
16658
16895
|
/* harmony import */ var _Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Security/SessionsPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SessionsPolicyState/state.js");
|
|
16659
|
-
/* harmony import */ var
|
|
16896
|
+
/* harmony import */ var _Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./Security/SessionsPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SessionsPolicyState/actions.js");
|
|
16660
16897
|
/* harmony import */ var _SessionsState__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./SessionsState */ "../../dist/@frontegg/redux-store/auth/SessionsState/state.js");
|
|
16661
|
-
/* harmony import */ var
|
|
16898
|
+
/* harmony import */ var _SessionsState__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./SessionsState */ "../../dist/@frontegg/redux-store/auth/SessionsState/actions.js");
|
|
16662
16899
|
/* harmony import */ var _SignUpState__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./SignUpState */ "../../dist/@frontegg/redux-store/auth/SignUpState/state.js");
|
|
16663
|
-
/* harmony import */ var
|
|
16900
|
+
/* harmony import */ var _SignUpState__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./SignUpState */ "../../dist/@frontegg/redux-store/auth/SignUpState/actions.js");
|
|
16664
16901
|
/* harmony import */ var _SmsState__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./SmsState */ "../../dist/@frontegg/redux-store/auth/SmsState/state.js");
|
|
16665
|
-
/* harmony import */ var
|
|
16902
|
+
/* harmony import */ var _SmsState__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./SmsState */ "../../dist/@frontegg/redux-store/auth/SmsState/actions.js");
|
|
16666
16903
|
/* harmony import */ var _SocialLoginState__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./SocialLoginState */ "../../dist/@frontegg/redux-store/auth/SocialLoginState/state.js");
|
|
16667
|
-
/* harmony import */ var
|
|
16904
|
+
/* harmony import */ var _SocialLoginState__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./SocialLoginState */ "../../dist/@frontegg/redux-store/auth/SocialLoginState/actions.js");
|
|
16668
16905
|
/* harmony import */ var _SSOState__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./SSOState */ "../../dist/@frontegg/redux-store/auth/SSOState/state.js");
|
|
16669
|
-
/* harmony import */ var
|
|
16906
|
+
/* harmony import */ var _SSOState__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./SSOState */ "../../dist/@frontegg/redux-store/auth/SSOState/actions/index.js");
|
|
16670
16907
|
/* harmony import */ var _StepUpState__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./StepUpState */ "../../dist/@frontegg/redux-store/auth/StepUpState/state.js");
|
|
16671
|
-
/* harmony import */ var
|
|
16908
|
+
/* harmony import */ var _StepUpState__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./StepUpState */ "../../dist/@frontegg/redux-store/auth/StepUpState/actions/index.js");
|
|
16672
16909
|
/* harmony import */ var _TeamState__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./TeamState */ "../../dist/@frontegg/redux-store/auth/TeamState/state.js");
|
|
16673
|
-
/* harmony import */ var
|
|
16910
|
+
/* harmony import */ var _TeamState__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./TeamState */ "../../dist/@frontegg/redux-store/auth/TeamState/actions/index.js");
|
|
16674
16911
|
/* harmony import */ var _TenantsState__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./TenantsState */ "../../dist/@frontegg/redux-store/auth/TenantsState/state.js");
|
|
16675
|
-
/* harmony import */ var
|
|
16676
|
-
/* harmony import */ var
|
|
16677
|
-
/* harmony import */ var
|
|
16912
|
+
/* harmony import */ var _TenantsState__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./TenantsState */ "../../dist/@frontegg/redux-store/auth/TenantsState/actions.js");
|
|
16913
|
+
/* harmony import */ var _UsernamesState__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js");
|
|
16914
|
+
/* harmony import */ var _UsernamesState__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js");
|
|
16915
|
+
/* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/state.js");
|
|
16916
|
+
/* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js");
|
|
16678
16917
|
/* harmony import */ var _LoginState_consts__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./LoginState/consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
|
|
16679
|
-
/* harmony import */ var
|
|
16680
|
-
/* harmony import */ var
|
|
16918
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
16919
|
+
/* harmony import */ var _Entitlements__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./Entitlements */ "../../dist/@frontegg/redux-store/auth/Entitlements/actions.js");
|
|
16681
16920
|
/* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
|
|
16682
16921
|
/* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
|
|
16683
16922
|
/* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
|
|
@@ -16772,6 +17011,8 @@ const _excluded = ["routes"],
|
|
|
16772
17011
|
|
|
16773
17012
|
|
|
16774
17013
|
|
|
17014
|
+
|
|
17015
|
+
|
|
16775
17016
|
|
|
16776
17017
|
|
|
16777
17018
|
|
|
@@ -16829,14 +17070,15 @@ const createAuthState = _overrideState => {
|
|
|
16829
17070
|
stepUpState: (0,_StepUpState__WEBPACK_IMPORTED_MODULE_53__["default"])(overrideState == null ? void 0 : overrideState.stepUpState),
|
|
16830
17071
|
teamState: (0,_TeamState__WEBPACK_IMPORTED_MODULE_54__["default"])(overrideState == null ? void 0 : overrideState.teamState),
|
|
16831
17072
|
tenantsState: (0,_TenantsState__WEBPACK_IMPORTED_MODULE_55__["default"])(overrideState == null ? void 0 : overrideState.tenantsState),
|
|
16832
|
-
|
|
17073
|
+
usernamesState: (0,_UsernamesState__WEBPACK_IMPORTED_MODULE_56__["default"])(overrideState == null ? void 0 : overrideState.usernamesState),
|
|
17074
|
+
userEmailPolicyState: (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_57__["default"])(overrideState == null ? void 0 : overrideState.userEmailPolicyState)
|
|
16833
17075
|
}));
|
|
16834
17076
|
};
|
|
16835
17077
|
const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
16836
17078
|
const setAuthState = state => {
|
|
16837
17079
|
Object.keys(state).forEach(key => {
|
|
16838
17080
|
const authKey = key;
|
|
16839
|
-
if ((0,
|
|
17081
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_58__.isProxy)(store.auth[authKey])) {
|
|
16840
17082
|
Object.assign(store.auth[authKey], state[authKey]);
|
|
16841
17083
|
} else {
|
|
16842
17084
|
store.auth[authKey] = state[authKey];
|
|
@@ -16844,7 +17086,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
16844
17086
|
});
|
|
16845
17087
|
};
|
|
16846
17088
|
const resetAuthState = (state = {}) => {
|
|
16847
|
-
(0,
|
|
17089
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_58__.deepResetState)(store, ['auth'], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, snapshotAuthState, state));
|
|
16848
17090
|
};
|
|
16849
17091
|
const setUser = user => {
|
|
16850
17092
|
setAuthState({
|
|
@@ -16862,41 +17104,42 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
16862
17104
|
})
|
|
16863
17105
|
});
|
|
16864
17106
|
};
|
|
16865
|
-
const acceptInvitationActions = (0,
|
|
16866
|
-
const accountSettingsActions = (0,
|
|
16867
|
-
const activateAccountActions = (0,
|
|
16868
|
-
const unlockAccountActions = (0,
|
|
16869
|
-
const apiTokensActions = (0,
|
|
16870
|
-
const applicationsActions = (0,
|
|
16871
|
-
const customLoginActions = (0,
|
|
16872
|
-
const entitlementsActions = (0,
|
|
16873
|
-
const forgotPasswordActions = (0,
|
|
16874
|
-
const passwordRotationActions = (0,
|
|
16875
|
-
const groupsActions = (0,
|
|
16876
|
-
const groupsDialogsActions = (0,
|
|
16877
|
-
const impersonateActions = (0,
|
|
16878
|
-
const loginActions = (0,
|
|
16879
|
-
const mfaActions = (0,
|
|
16880
|
-
const allAccountsActions = (0,
|
|
16881
|
-
const allAccountsDialogActions = (0,
|
|
16882
|
-
const passkeysActions = (0,
|
|
16883
|
-
const profileActions = (0,
|
|
16884
|
-
const provisioningActions = (0,
|
|
16885
|
-
const resetPhoneNumberActions = (0,
|
|
16886
|
-
const rolesActions = (0,
|
|
16887
|
-
const restrictionsActions = (0,
|
|
16888
|
-
const securityCenterActions = (0,
|
|
16889
|
-
const securityPolicyActions = (0,
|
|
16890
|
-
const sessionsPolicyActions = (0,
|
|
16891
|
-
const sessionsActions = (0,
|
|
16892
|
-
const signUpActions = (0,
|
|
16893
|
-
const smsActions = (0,
|
|
16894
|
-
const socialLoginActions = (0,
|
|
16895
|
-
const ssoActions = (0,
|
|
16896
|
-
const stepUpActions = (0,
|
|
16897
|
-
const teamActions = (0,
|
|
16898
|
-
const tenantsActions = (0,
|
|
16899
|
-
const
|
|
17107
|
+
const acceptInvitationActions = (0,_AcceptInvitationState__WEBPACK_IMPORTED_MODULE_59__["default"])(store, api, actions);
|
|
17108
|
+
const accountSettingsActions = (0,_AccountSettingsState__WEBPACK_IMPORTED_MODULE_60__["default"])(store, api, actions);
|
|
17109
|
+
const activateAccountActions = (0,_ActivateAccountState__WEBPACK_IMPORTED_MODULE_61__["default"])(store, api, actions);
|
|
17110
|
+
const unlockAccountActions = (0,_UnlockAccountState__WEBPACK_IMPORTED_MODULE_62__["default"])(store, api, actions);
|
|
17111
|
+
const apiTokensActions = (0,_ApiTokensState__WEBPACK_IMPORTED_MODULE_63__["default"])(store, api, actions);
|
|
17112
|
+
const applicationsActions = (0,_ApplicationsState__WEBPACK_IMPORTED_MODULE_64__["default"])(store, api, actions);
|
|
17113
|
+
const customLoginActions = (0,_CustomLoginState__WEBPACK_IMPORTED_MODULE_65__["default"])(store, api, actions);
|
|
17114
|
+
const entitlementsActions = (0,_Entitlements__WEBPACK_IMPORTED_MODULE_66__["default"])(store, api, actions);
|
|
17115
|
+
const forgotPasswordActions = (0,_ForgotPasswordState__WEBPACK_IMPORTED_MODULE_67__["default"])(store, api, actions);
|
|
17116
|
+
const passwordRotationActions = (0,_PasswordRotationState__WEBPACK_IMPORTED_MODULE_68__["default"])(store, api, actions);
|
|
17117
|
+
const groupsActions = (0,_GroupsState__WEBPACK_IMPORTED_MODULE_69__["default"])(store, api, actions);
|
|
17118
|
+
const groupsDialogsActions = (0,_GroupsDialogsState__WEBPACK_IMPORTED_MODULE_70__["default"])(store, api, actions);
|
|
17119
|
+
const impersonateActions = (0,_ImpersonateState__WEBPACK_IMPORTED_MODULE_71__["default"])(store, api, actions);
|
|
17120
|
+
const loginActions = (0,_LoginState__WEBPACK_IMPORTED_MODULE_72__["default"])(store, api, actions);
|
|
17121
|
+
const mfaActions = (0,_MfaState__WEBPACK_IMPORTED_MODULE_73__["default"])(store, api, actions);
|
|
17122
|
+
const allAccountsActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_74__["default"])(store, api, actions);
|
|
17123
|
+
const allAccountsDialogActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_75__["default"])(store, api, actions);
|
|
17124
|
+
const passkeysActions = (0,_PasskeysState__WEBPACK_IMPORTED_MODULE_76__["default"])(store, api, actions);
|
|
17125
|
+
const profileActions = (0,_ProfileState__WEBPACK_IMPORTED_MODULE_77__["default"])(store, api, actions);
|
|
17126
|
+
const provisioningActions = (0,_ProvisioningState__WEBPACK_IMPORTED_MODULE_78__["default"])(store, api, actions);
|
|
17127
|
+
const resetPhoneNumberActions = (0,_ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_79__["default"])(store, api, actions);
|
|
17128
|
+
const rolesActions = (0,_RolesState__WEBPACK_IMPORTED_MODULE_80__["default"])(store, api, actions);
|
|
17129
|
+
const restrictionsActions = (0,_Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_81__["default"])(store, api, actions);
|
|
17130
|
+
const securityCenterActions = (0,_Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_82__["default"])(store, api, actions);
|
|
17131
|
+
const securityPolicyActions = (0,_Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_83__["default"])(store, api, actions);
|
|
17132
|
+
const sessionsPolicyActions = (0,_Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_84__["default"])(store, api, actions);
|
|
17133
|
+
const sessionsActions = (0,_SessionsState__WEBPACK_IMPORTED_MODULE_85__["default"])(store, api, actions);
|
|
17134
|
+
const signUpActions = (0,_SignUpState__WEBPACK_IMPORTED_MODULE_86__["default"])(store, api, actions);
|
|
17135
|
+
const smsActions = (0,_SmsState__WEBPACK_IMPORTED_MODULE_87__["default"])(store, api, actions);
|
|
17136
|
+
const socialLoginActions = (0,_SocialLoginState__WEBPACK_IMPORTED_MODULE_88__["default"])(store, api, actions);
|
|
17137
|
+
const ssoActions = (0,_SSOState__WEBPACK_IMPORTED_MODULE_89__["default"])(store, api, actions);
|
|
17138
|
+
const stepUpActions = (0,_StepUpState__WEBPACK_IMPORTED_MODULE_90__["default"])(store, api, actions);
|
|
17139
|
+
const teamActions = (0,_TeamState__WEBPACK_IMPORTED_MODULE_91__["default"])(store, api, actions);
|
|
17140
|
+
const tenantsActions = (0,_TenantsState__WEBPACK_IMPORTED_MODULE_92__["default"])(store, api, actions);
|
|
17141
|
+
const usernamesActions = (0,_UsernamesState__WEBPACK_IMPORTED_MODULE_93__["default"])(store, api, actions);
|
|
17142
|
+
const usersEmailsPolicyActions = (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_94__["default"])(store, api, actions);
|
|
16900
17143
|
const stateActions = {
|
|
16901
17144
|
acceptInvitationActions,
|
|
16902
17145
|
accountSettingsActions,
|
|
@@ -16932,6 +17175,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
16932
17175
|
stepUpActions,
|
|
16933
17176
|
teamActions,
|
|
16934
17177
|
tenantsActions,
|
|
17178
|
+
usernamesActions,
|
|
16935
17179
|
usersEmailsPolicyActions
|
|
16936
17180
|
};
|
|
16937
17181
|
return [(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
@@ -18700,6 +18944,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18700
18944
|
/* harmony export */ isProxy: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.isProxy),
|
|
18701
18945
|
/* harmony export */ isResetPasswordRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired),
|
|
18702
18946
|
/* harmony export */ isSteppedUp: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isSteppedUp),
|
|
18947
|
+
/* harmony export */ isUsernamePayload: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
|
|
18703
18948
|
/* harmony export */ mapMetaDataObjectToActions: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.mapMetaDataObjectToActions),
|
|
18704
18949
|
/* harmony export */ omitProps: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.omitProps),
|
|
18705
18950
|
/* harmony export */ prepareIdentifiersForSignup: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.prepareIdentifiersForSignup),
|
|
@@ -18725,7 +18970,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18725
18970
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
18726
18971
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
18727
18972
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
18728
|
-
/** @license Frontegg v7.
|
|
18973
|
+
/** @license Frontegg v7.76.0-alpha.1
|
|
18729
18974
|
*
|
|
18730
18975
|
* This source code is licensed under the MIT license found in the
|
|
18731
18976
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -19833,8 +20078,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19833
20078
|
/* harmony import */ var _teamActions_mocks__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./teamActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/teamActions.mocks.js");
|
|
19834
20079
|
/* harmony import */ var _tenantsActions_mocks__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./tenantsActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/tenantsActions.mocks.js");
|
|
19835
20080
|
/* harmony import */ var _unlockAccountActions_mocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./unlockAccountActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/unlockAccountActions.mocks.js");
|
|
19836
|
-
/* harmony import */ var
|
|
19837
|
-
/* harmony import */ var
|
|
20081
|
+
/* harmony import */ var _usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./usersEmailsPolicyActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/usersEmailsPolicyActions.mocks.js");
|
|
20082
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
20083
|
+
/* harmony import */ var _auth_UsernamesState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../auth/UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js");
|
|
19838
20084
|
|
|
19839
20085
|
|
|
19840
20086
|
const _excluded = ["requestName"];
|
|
@@ -19874,6 +20120,7 @@ const _excluded = ["requestName"];
|
|
|
19874
20120
|
|
|
19875
20121
|
|
|
19876
20122
|
|
|
20123
|
+
|
|
19877
20124
|
|
|
19878
20125
|
|
|
19879
20126
|
const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
@@ -19911,7 +20158,8 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
19911
20158
|
const stepUpActions = (0,_stepUpActions_mocks__WEBPACK_IMPORTED_MODULE_33__["default"])(store, api, actions);
|
|
19912
20159
|
const teamActions = (0,_teamActions_mocks__WEBPACK_IMPORTED_MODULE_34__["default"])(store, api, actions);
|
|
19913
20160
|
const tenantsActions = (0,_tenantsActions_mocks__WEBPACK_IMPORTED_MODULE_35__["default"])(store, api, actions);
|
|
19914
|
-
const
|
|
20161
|
+
const usernamesActions = (0,_auth_UsernamesState__WEBPACK_IMPORTED_MODULE_36__["default"])(store, api, actions);
|
|
20162
|
+
const usersEmailsPolicyActions = (0,_usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_37__["default"])(store, api, actions);
|
|
19915
20163
|
const authStateActions = {
|
|
19916
20164
|
acceptInvitationActions,
|
|
19917
20165
|
accountSettingsActions,
|
|
@@ -19947,12 +20195,13 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
19947
20195
|
stepUpActions,
|
|
19948
20196
|
teamActions,
|
|
19949
20197
|
tenantsActions,
|
|
20198
|
+
usernamesActions,
|
|
19950
20199
|
usersEmailsPolicyActions
|
|
19951
20200
|
};
|
|
19952
20201
|
const setAuthState = state => {
|
|
19953
20202
|
Object.keys(state).forEach(key => {
|
|
19954
20203
|
const authKey = key;
|
|
19955
|
-
if ((0,
|
|
20204
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_38__.isProxy)(store.auth[authKey])) {
|
|
19956
20205
|
Object.assign(store.auth[authKey], state[authKey]);
|
|
19957
20206
|
} else {
|
|
19958
20207
|
store.auth[authKey] = state[authKey];
|
|
@@ -19961,7 +20210,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
19961
20210
|
};
|
|
19962
20211
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19963
20212
|
const resetAuthState = () => {
|
|
19964
|
-
(0,
|
|
20213
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_38__.deepResetState)(store, ['auth'], snapshotAuthState);
|
|
19965
20214
|
};
|
|
19966
20215
|
const setUser = user => {
|
|
19967
20216
|
setAuthState({
|
|
@@ -19985,7 +20234,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
|
|
|
19985
20234
|
setErrorByRequestName,
|
|
19986
20235
|
resetAuthState,
|
|
19987
20236
|
setUser
|
|
19988
|
-
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, passwordRotationActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions, usersEmailsPolicyActions);
|
|
20237
|
+
}, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, passwordRotationActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions, usernamesActions, usersEmailsPolicyActions);
|
|
19989
20238
|
return {
|
|
19990
20239
|
authActions,
|
|
19991
20240
|
authStateActions
|
|
@@ -24995,16 +25244,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24995
25244
|
/* harmony export */ });
|
|
24996
25245
|
class FronteggNativeModule {
|
|
24997
25246
|
constructor() {
|
|
24998
|
-
this.loginWithSSO =
|
|
25247
|
+
this.loginWithSSO = identifier => {
|
|
24999
25248
|
if (this.isIOSNativeBridgeAvailable()) {
|
|
25000
25249
|
var _window$webkit, _window$webkit$messag, _window$webkit$messag2;
|
|
25001
25250
|
(_window$webkit = window.webkit) == null ? void 0 : (_window$webkit$messag = _window$webkit.messageHandlers) == null ? void 0 : (_window$webkit$messag2 = _window$webkit$messag.FronteggNativeBridge) == null ? void 0 : _window$webkit$messag2.postMessage(JSON.stringify({
|
|
25002
25251
|
action: 'loginWithSSO',
|
|
25003
|
-
payload:
|
|
25252
|
+
payload: identifier
|
|
25004
25253
|
}));
|
|
25005
25254
|
} else if (this.isAndroidNativeBridgeAvailable()) {
|
|
25006
25255
|
var _window$FronteggNativ;
|
|
25007
|
-
(_window$FronteggNativ = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ.loginWithSSO(
|
|
25256
|
+
(_window$FronteggNativ = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ.loginWithSSO(identifier);
|
|
25008
25257
|
} else {
|
|
25009
25258
|
throw new Error('FronteggNativeBridge is not available');
|
|
25010
25259
|
}
|
|
@@ -26837,7 +27086,9 @@ const USE_CURRENT_USER_TENANTS_V1_ENDPOINT_FF = 'admin_portal_use_current_user_t
|
|
|
26837
27086
|
__webpack_require__.r(__webpack_exports__);
|
|
26838
27087
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26839
27088
|
/* harmony export */ AuthStrategyEnum: () => (/* binding */ AuthStrategyEnum),
|
|
27089
|
+
/* harmony export */ EIdentifierType: () => (/* binding */ EIdentifierType),
|
|
26840
27090
|
/* harmony export */ MachineToMachineAuthStrategy: () => (/* binding */ MachineToMachineAuthStrategy),
|
|
27091
|
+
/* harmony export */ PasswordRecoveryStrategyEnum: () => (/* binding */ PasswordRecoveryStrategyEnum),
|
|
26841
27092
|
/* harmony export */ SignUpStrategyEnum: () => (/* binding */ SignUpStrategyEnum),
|
|
26842
27093
|
/* harmony export */ SocialLoginProviders: () => (/* binding */ SocialLoginProviders)
|
|
26843
27094
|
/* harmony export */ });
|
|
@@ -26874,6 +27125,17 @@ let SignUpStrategyEnum;
|
|
|
26874
27125
|
SignUpStrategyEnum["Email"] = "email";
|
|
26875
27126
|
SignUpStrategyEnum["PhoneNumber"] = "phoneNumber";
|
|
26876
27127
|
})(SignUpStrategyEnum || (SignUpStrategyEnum = {}));
|
|
27128
|
+
let EIdentifierType;
|
|
27129
|
+
(function (EIdentifierType) {
|
|
27130
|
+
EIdentifierType["email"] = "email";
|
|
27131
|
+
EIdentifierType["phoneNumber"] = "phoneNumber";
|
|
27132
|
+
EIdentifierType["username"] = "username";
|
|
27133
|
+
})(EIdentifierType || (EIdentifierType = {}));
|
|
27134
|
+
let PasswordRecoveryStrategyEnum;
|
|
27135
|
+
(function (PasswordRecoveryStrategyEnum) {
|
|
27136
|
+
PasswordRecoveryStrategyEnum["Email"] = "email";
|
|
27137
|
+
PasswordRecoveryStrategyEnum["Sms"] = "sms";
|
|
27138
|
+
})(PasswordRecoveryStrategyEnum || (PasswordRecoveryStrategyEnum = {}));
|
|
26877
27139
|
|
|
26878
27140
|
/***/ }),
|
|
26879
27141
|
|
|
@@ -26888,8 +27150,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26888
27150
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26889
27151
|
/* harmony export */ AuthStrategyEnum: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum),
|
|
26890
27152
|
/* harmony export */ AuthenticationApi: () => (/* binding */ AuthenticationApi),
|
|
27153
|
+
/* harmony export */ EIdentifierType: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.EIdentifierType),
|
|
26891
27154
|
/* harmony export */ FRONTEGG_SEPARATE_TABS_BY_TENANT: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_4__.FRONTEGG_SEPARATE_TABS_BY_TENANT),
|
|
26892
27155
|
/* harmony export */ MachineToMachineAuthStrategy: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.MachineToMachineAuthStrategy),
|
|
27156
|
+
/* harmony export */ PasswordRecoveryStrategyEnum: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.PasswordRecoveryStrategyEnum),
|
|
26893
27157
|
/* harmony export */ SecurityPolicyApi: () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.SecurityPolicyApi),
|
|
26894
27158
|
/* harmony export */ SignUpStrategyEnum: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.SignUpStrategyEnum),
|
|
26895
27159
|
/* harmony export */ SocialLoginProviders: () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_3__.SocialLoginProviders),
|
|
@@ -26932,6 +27196,7 @@ const _excluded = ["type"],
|
|
|
26932
27196
|
|
|
26933
27197
|
|
|
26934
27198
|
|
|
27199
|
+
|
|
26935
27200
|
class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.BaseApiClient {
|
|
26936
27201
|
constructor(appName) {
|
|
26937
27202
|
super(appName);
|
|
@@ -27124,6 +27389,9 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
27124
27389
|
this.resetPassword = async body => {
|
|
27125
27390
|
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.users.v1}/passwords/reset/verify`, body);
|
|
27126
27391
|
};
|
|
27392
|
+
this.getPasswordRecoveryStrategies = async () => {
|
|
27393
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.configurations.v1}/password-recovery/strategies`);
|
|
27394
|
+
};
|
|
27127
27395
|
this.loadPasswordConfig = async params => {
|
|
27128
27396
|
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.users.v1}/passwords/config`, params);
|
|
27129
27397
|
};
|
|
@@ -27477,11 +27745,19 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
27477
27745
|
});
|
|
27478
27746
|
};
|
|
27479
27747
|
this.passwordlessPreLogin = async _ref => {
|
|
27748
|
+
var _usernameToTypeMapper;
|
|
27480
27749
|
let {
|
|
27481
27750
|
type
|
|
27482
27751
|
} = _ref,
|
|
27483
27752
|
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded);
|
|
27484
|
-
|
|
27753
|
+
const usernameToTypeMapper = {
|
|
27754
|
+
[_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndCode]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.Code,
|
|
27755
|
+
[_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndMagicLink]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.MagicLink,
|
|
27756
|
+
[_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndSms]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.SmsCode,
|
|
27757
|
+
[_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndPassword]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.EmailAndPassword
|
|
27758
|
+
};
|
|
27759
|
+
const mappedType = ((_usernameToTypeMapper = usernameToTypeMapper[type]) == null ? void 0 : _usernameToTypeMapper.toLowerCase()) || type.toLowerCase();
|
|
27760
|
+
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.auth.v1}/passwordless/${mappedType}/prelogin`, body);
|
|
27485
27761
|
};
|
|
27486
27762
|
this.passwordlessPostLoginV2 = async _ref2 => {
|
|
27487
27763
|
let {
|
|
@@ -28297,6 +28573,9 @@ const urls = {
|
|
|
28297
28573
|
},
|
|
28298
28574
|
phoneNumbers: {
|
|
28299
28575
|
v1: '/identity/resources/users/phone-numbers/v1'
|
|
28576
|
+
},
|
|
28577
|
+
usernames: {
|
|
28578
|
+
v1: '/identity/resources/usernames/v1'
|
|
28300
28579
|
}
|
|
28301
28580
|
},
|
|
28302
28581
|
team: {
|
|
@@ -28843,31 +29122,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28843
29122
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28844
29123
|
/* harmony export */ ApplicationAccessType: () => (/* reexport safe */ _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__.ApplicationAccessType),
|
|
28845
29124
|
/* harmony export */ AuthStrategyEnum: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.AuthStrategyEnum),
|
|
28846
|
-
/* harmony export */ ContextHolder: () => (/* reexport safe */
|
|
29125
|
+
/* harmony export */ ContextHolder: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.ContextHolder),
|
|
28847
29126
|
/* harmony export */ DirectoryApi: () => (/* reexport safe */ _directory_index__WEBPACK_IMPORTED_MODULE_11__.DirectoryApi),
|
|
29127
|
+
/* harmony export */ EIdentifierType: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.EIdentifierType),
|
|
28848
29128
|
/* harmony export */ FRONTEGG_SEPARATE_TABS_BY_TENANT: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_4__.FRONTEGG_SEPARATE_TABS_BY_TENANT),
|
|
28849
29129
|
/* harmony export */ FeatureFlags: () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_10__.FeatureFlags),
|
|
28850
29130
|
/* harmony export */ FeatureFlagsApi: () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_10__.FeatureFlagsApi),
|
|
28851
|
-
/* harmony export */ FetchClient: () => (/* reexport safe */
|
|
28852
|
-
/* harmony export */ FronteggApiError: () => (/* reexport safe */
|
|
28853
|
-
/* harmony export */ FronteggContext: () => (/* reexport safe */
|
|
29131
|
+
/* harmony export */ FetchClient: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_43__.FetchClient),
|
|
29132
|
+
/* harmony export */ FronteggApiError: () => (/* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_45__.FronteggApiError),
|
|
29133
|
+
/* harmony export */ FronteggContext: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.FronteggContext),
|
|
28854
29134
|
/* harmony export */ FronteggFrameworks: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.FronteggFrameworks),
|
|
28855
29135
|
/* harmony export */ GENERIC_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.GENERIC_ERROR_CODE),
|
|
28856
29136
|
/* harmony export */ GENERIC_ERROR_MESSAGE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.GENERIC_ERROR_MESSAGE),
|
|
28857
29137
|
/* harmony export */ GetUsersFilterPreset: () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_14__.GetUsersFilterPreset),
|
|
28858
29138
|
/* harmony export */ GroupManagedByEnum: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupManagedByEnum),
|
|
28859
29139
|
/* harmony export */ GroupRelations: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupRelations),
|
|
28860
|
-
/* harmony export */ ISubscriptionCancellationPolicy: () => (/* reexport safe */
|
|
28861
|
-
/* harmony export */ ISubscriptionStatus: () => (/* reexport safe */
|
|
29140
|
+
/* harmony export */ ISubscriptionCancellationPolicy: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionCancellationPolicy),
|
|
29141
|
+
/* harmony export */ ISubscriptionStatus: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionStatus),
|
|
28862
29142
|
/* harmony export */ InsightCode: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.InsightCode),
|
|
28863
29143
|
/* harmony export */ LOAD_AUTHORIZATION_FF: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.LOAD_AUTHORIZATION_FF),
|
|
28864
29144
|
/* harmony export */ MFAStrategyEnum: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.MFAStrategyEnum),
|
|
28865
29145
|
/* harmony export */ MachineToMachineAuthStrategy: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.MachineToMachineAuthStrategy),
|
|
28866
29146
|
/* harmony export */ NotEntitledJustification: () => (/* reexport safe */ _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_15__.NotEntitledJustification),
|
|
28867
29147
|
/* harmony export */ PaginationOrderEnum: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.PaginationOrderEnum),
|
|
28868
|
-
/* harmony export */
|
|
29148
|
+
/* harmony export */ PasswordRecoveryStrategyEnum: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.PasswordRecoveryStrategyEnum),
|
|
29149
|
+
/* harmony export */ PaymentMethodType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.PaymentMethodType),
|
|
28869
29150
|
/* harmony export */ PermissionAssignmentTypeEnum: () => (/* reexport safe */ _roles_interfaces__WEBPACK_IMPORTED_MODULE_7__.PermissionAssignmentTypeEnum),
|
|
28870
|
-
/* harmony export */ ProviderType: () => (/* reexport safe */
|
|
29151
|
+
/* harmony export */ ProviderType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ProviderType),
|
|
28871
29152
|
/* harmony export */ RecommendationActionKey: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationActionKey),
|
|
28872
29153
|
/* harmony export */ RecommendationCode: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationCode),
|
|
28873
29154
|
/* harmony export */ RecommendationSeverity: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationSeverity),
|
|
@@ -28887,7 +29168,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28887
29168
|
/* harmony export */ api: () => (/* binding */ api),
|
|
28888
29169
|
/* harmony export */ createApiClient: () => (/* binding */ createApiClient),
|
|
28889
29170
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
28890
|
-
/* harmony export */ fetch: () => (/* reexport safe */
|
|
29171
|
+
/* harmony export */ fetch: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_43__["default"]),
|
|
28891
29172
|
/* harmony export */ fronteggAuthApiRoutesRegex: () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_9__.fronteggAuthApiRoutesRegex),
|
|
28892
29173
|
/* harmony export */ fronteggEntitlementsV2Url: () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_9__.fronteggEntitlementsV2Url),
|
|
28893
29174
|
/* harmony export */ fronteggHeaders: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.fronteggHeaders),
|
|
@@ -28903,10 +29184,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28903
29184
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantInSessionStorage)
|
|
28904
29185
|
/* harmony export */ });
|
|
28905
29186
|
/* harmony import */ var _auth_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth/enums */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
28906
|
-
/* harmony import */ var
|
|
28907
|
-
/* harmony import */ var
|
|
28908
|
-
/* harmony import */ var
|
|
28909
|
-
/* harmony import */ var
|
|
29187
|
+
/* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./subscriptions */ "../../dist/@frontegg/rest-api/subscriptions/enums.js");
|
|
29188
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./error */ "../../dist/@frontegg/rest-api/error.js");
|
|
29189
|
+
/* harmony import */ var _FetchClient__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./FetchClient */ "../../dist/@frontegg/rest-api/FetchClient.js");
|
|
29190
|
+
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
28910
29191
|
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./auth */ "../../dist/@frontegg/rest-api/auth/index.js");
|
|
28911
29192
|
/* harmony import */ var _auth_secutiry_poilicy__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./auth/secutiry-poilicy */ "../../dist/@frontegg/rest-api/auth/secutiry-poilicy/index.js");
|
|
28912
29193
|
/* harmony import */ var _users__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./users */ "../../dist/@frontegg/rest-api/users/index.js");
|
|
@@ -28931,7 +29212,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28931
29212
|
/* harmony import */ var _user_phone_numbers__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./user-phone-numbers */ "../../dist/@frontegg/rest-api/user-phone-numbers/index.js");
|
|
28932
29213
|
/* harmony import */ var _applications__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./applications */ "../../dist/@frontegg/rest-api/applications/index.js");
|
|
28933
29214
|
/* harmony import */ var _velo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./velo */ "../../dist/@frontegg/rest-api/velo/index.js");
|
|
28934
|
-
/* harmony import */ var
|
|
29215
|
+
/* harmony import */ var _usernames__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./usernames */ "../../dist/@frontegg/rest-api/usernames/index.js");
|
|
29216
|
+
/* harmony import */ var _users_emails_policy__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./users-emails-policy */ "../../dist/@frontegg/rest-api/users-emails-policy/index.js");
|
|
28935
29217
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/rest-api/interfaces.js");
|
|
28936
29218
|
/* harmony import */ var _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth/interfaces */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
|
|
28937
29219
|
/* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
@@ -28948,7 +29230,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28948
29230
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
28949
29231
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
28950
29232
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
28951
|
-
/** @license Frontegg v7.
|
|
29233
|
+
/** @license Frontegg v7.76.0-alpha.1
|
|
28952
29234
|
*
|
|
28953
29235
|
* This source code is licensed under the MIT license found in the
|
|
28954
29236
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -29013,6 +29295,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29013
29295
|
|
|
29014
29296
|
|
|
29015
29297
|
|
|
29298
|
+
|
|
29016
29299
|
|
|
29017
29300
|
|
|
29018
29301
|
/**
|
|
@@ -29045,7 +29328,8 @@ const api = {
|
|
|
29045
29328
|
userPhoneNumbers: _user_phone_numbers__WEBPACK_IMPORTED_MODULE_38__["default"],
|
|
29046
29329
|
applications: _applications__WEBPACK_IMPORTED_MODULE_39__["default"],
|
|
29047
29330
|
velo: _velo__WEBPACK_IMPORTED_MODULE_40__["default"],
|
|
29048
|
-
|
|
29331
|
+
usernames: _usernames__WEBPACK_IMPORTED_MODULE_41__["default"],
|
|
29332
|
+
userEmailPolicy: _users_emails_policy__WEBPACK_IMPORTED_MODULE_42__["default"]
|
|
29049
29333
|
};
|
|
29050
29334
|
const createApiClient = appName => ({
|
|
29051
29335
|
auth: new _auth__WEBPACK_IMPORTED_MODULE_19__.AuthenticationApi(appName),
|
|
@@ -29072,24 +29356,26 @@ const createApiClient = appName => ({
|
|
|
29072
29356
|
userPhoneNumbers: new _user_phone_numbers__WEBPACK_IMPORTED_MODULE_38__.PhoneNumbersApi(appName),
|
|
29073
29357
|
applications: new _applications__WEBPACK_IMPORTED_MODULE_39__.ApplicationsApi(appName),
|
|
29074
29358
|
velo: new _velo__WEBPACK_IMPORTED_MODULE_40__.VeloApi(appName),
|
|
29075
|
-
|
|
29359
|
+
usernames: new _usernames__WEBPACK_IMPORTED_MODULE_41__.UsernamesApi(appName),
|
|
29360
|
+
userEmailPolicy: new _users_emails_policy__WEBPACK_IMPORTED_MODULE_42__.UserEmailPolicyApi(appName)
|
|
29076
29361
|
});
|
|
29077
29362
|
|
|
29078
29363
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
29079
|
-
fetch:
|
|
29080
|
-
FetchClient:
|
|
29081
|
-
ContextHolder:
|
|
29082
|
-
FronteggContext:
|
|
29364
|
+
fetch: _FetchClient__WEBPACK_IMPORTED_MODULE_43__["default"],
|
|
29365
|
+
FetchClient: _FetchClient__WEBPACK_IMPORTED_MODULE_43__.FetchClient,
|
|
29366
|
+
ContextHolder: _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.ContextHolder,
|
|
29367
|
+
FronteggContext: _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.FronteggContext,
|
|
29083
29368
|
api,
|
|
29084
29369
|
createApiClient,
|
|
29085
|
-
FronteggApiError:
|
|
29370
|
+
FronteggApiError: _error__WEBPACK_IMPORTED_MODULE_45__.FronteggApiError,
|
|
29086
29371
|
AuthStrategyEnum: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.AuthStrategyEnum,
|
|
29087
29372
|
MachineToMachineAuthStrategy: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.MachineToMachineAuthStrategy,
|
|
29088
29373
|
SocialLoginProviders: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.SocialLoginProviders,
|
|
29089
|
-
ISubscriptionCancellationPolicy:
|
|
29090
|
-
ISubscriptionStatus:
|
|
29091
|
-
PaymentMethodType:
|
|
29092
|
-
ProviderType:
|
|
29374
|
+
ISubscriptionCancellationPolicy: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionCancellationPolicy,
|
|
29375
|
+
ISubscriptionStatus: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionStatus,
|
|
29376
|
+
PaymentMethodType: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.PaymentMethodType,
|
|
29377
|
+
ProviderType: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ProviderType,
|
|
29378
|
+
EIdentifierType: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.EIdentifierType
|
|
29093
29379
|
});
|
|
29094
29380
|
|
|
29095
29381
|
/***/ }),
|
|
@@ -30660,6 +30946,45 @@ class PhoneNumbersApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.BaseAp
|
|
|
30660
30946
|
|
|
30661
30947
|
/***/ }),
|
|
30662
30948
|
|
|
30949
|
+
/***/ "../../dist/@frontegg/rest-api/usernames/index.js":
|
|
30950
|
+
/*!********************************************************!*\
|
|
30951
|
+
!*** ../../dist/@frontegg/rest-api/usernames/index.js ***!
|
|
30952
|
+
\********************************************************/
|
|
30953
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
30954
|
+
|
|
30955
|
+
"use strict";
|
|
30956
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30957
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30958
|
+
/* harmony export */ UsernamesApi: () => (/* binding */ UsernamesApi),
|
|
30959
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
30960
|
+
/* harmony export */ });
|
|
30961
|
+
/* harmony import */ var _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../BaseApiClient */ "../../dist/@frontegg/rest-api/BaseApiClient.js");
|
|
30962
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
30963
|
+
|
|
30964
|
+
|
|
30965
|
+
class UsernamesApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.BaseApiClient {
|
|
30966
|
+
constructor(appName) {
|
|
30967
|
+
super(appName);
|
|
30968
|
+
this.getUserOwnUsername = async () => {
|
|
30969
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}/me`);
|
|
30970
|
+
};
|
|
30971
|
+
this.createUsername = async body => {
|
|
30972
|
+
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}`, body);
|
|
30973
|
+
};
|
|
30974
|
+
this.deleteUsername = async username => {
|
|
30975
|
+
return this.delete(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}/${username}`);
|
|
30976
|
+
};
|
|
30977
|
+
}
|
|
30978
|
+
|
|
30979
|
+
/**
|
|
30980
|
+
* Get own username of user
|
|
30981
|
+
*/
|
|
30982
|
+
}
|
|
30983
|
+
|
|
30984
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new UsernamesApi('default'));
|
|
30985
|
+
|
|
30986
|
+
/***/ }),
|
|
30987
|
+
|
|
30663
30988
|
/***/ "../../dist/@frontegg/rest-api/users-emails-policy/index.js":
|
|
30664
30989
|
/*!******************************************************************!*\
|
|
30665
30990
|
!*** ../../dist/@frontegg/rest-api/users-emails-policy/index.js ***!
|
|
@@ -31495,6 +31820,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31495
31820
|
let ProfilePageFields;
|
|
31496
31821
|
(function (ProfilePageFields) {
|
|
31497
31822
|
ProfilePageFields["Name"] = "name";
|
|
31823
|
+
ProfilePageFields["Username"] = "username";
|
|
31498
31824
|
ProfilePageFields["PhoneNumber"] = "phoneNumber";
|
|
31499
31825
|
ProfilePageFields["Address"] = "address";
|
|
31500
31826
|
ProfilePageFields["JobTitle"] = "jobTitle";
|
|
@@ -31641,7 +31967,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31641
31967
|
/* harmony export */ });
|
|
31642
31968
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
31643
31969
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
31644
|
-
/** @license Frontegg v7.
|
|
31970
|
+
/** @license Frontegg v7.76.0-alpha.1
|
|
31645
31971
|
*
|
|
31646
31972
|
* This source code is licensed under the MIT license found in the
|
|
31647
31973
|
* LICENSE file in the root directory of this source tree.
|