@frontegg/js 7.75.0 → 7.76.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -634,8 +634,8 @@ var FronteggApp = /*#__PURE__*/function () {
634
634
  return _ref7.apply(this, arguments);
635
635
  };
636
636
  }();
637
- this.getUsersTableStore = /*#__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(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.useUsersTableStore(options));
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.getInviteUserDialogStore = /*#__PURE__*/function () {
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.useInviteUserDialogStore(options));
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 (_x14) {
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 _callee10(elements) {
772
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee10$(_context10) {
773
- while (1) switch (_context10.prev = _context10.next) {
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
- _context10.next = 9;
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 _context10.stop();
827
+ return _context11.stop();
801
828
  }
802
- }, _callee10, this);
829
+ }, _callee11, this);
803
830
  }));
804
- function initContainers(_x15) {
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 _callee11() {
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 _callee11$(_context11) {
922
- while (1) switch (_context11.prev = _context11.next) {
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
- _context11.next = 2;
951
+ _context12.next = 2;
925
952
  return this.loadScript('FronteggLoginBox');
926
953
  case 2:
927
- FronteggLoginBox = _context11.sent;
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 _context11.stop();
970
+ return _context12.stop();
944
971
  }
945
- }, _callee11, this);
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 _callee12(options) {
956
- var _ref10, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
957
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee12$(_context12) {
958
- while (1) switch (_context12.prev = _context12.next) {
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
- _ref10 = options != null ? options : {
987
+ _ref11 = options != null ? options : {
961
988
  isMultiApp: false
962
- }, isMultiApp = _ref10.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
- _context12.next = 5;
992
+ _context13.next = 5;
966
993
  return this.loadScript('FronteggAdminPortal');
967
994
  case 5:
968
- FronteggAdminPortal = _context12.sent;
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 _context12.stop();
1004
+ return _context13.stop();
978
1005
  }
979
- }, _callee12, this);
1006
+ }, _callee13, this);
980
1007
  }));
981
- function showAdminPortal(_x16) {
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 _callee13(opts) {
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 _callee13$(_context13) {
1023
- while (1) switch (_context13.prev = _context13.next) {
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
- _context13.next = 2;
1052
+ _context14.next = 2;
1026
1053
  return this.loadScript('FronteggAdminPortal');
1027
1054
  case 2:
1028
- FronteggAdminPortal = _context13.sent;
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 _context13.stop();
1063
+ return _context14.stop();
1037
1064
  }
1038
- }, _callee13, this);
1065
+ }, _callee14, this);
1039
1066
  }));
1040
- function showCheckoutDialog(_x17) {
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 _ref11 = (state == null ? void 0 : state.auth) || {},
1130
- hostedLoginBox = _ref11.hostedLoginBox,
1131
- stepUpUrl = _ref11.routes.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 _ref12 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
1152
- user = _ref12.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.75.0'
1810
+ cdnVersion: '7.76.0-alpha.0'
1784
1811
  });
1785
1812
 
1786
1813
  /***/ }),
@@ -5139,7 +5166,7 @@ __webpack_require__.r(__webpack_exports__);
5139
5166
  const postHandleVerifyMFAResponseForLogin = async (isAuthenticated, user) => {
5140
5167
  const loginState = store.auth.loginState;
5141
5168
  const mfaStep = store.auth.mfaState.step;
5142
- const [securityCenterLoginFlows, passwordRotationFlagEnabled] = await actions.getFeatureFlags(['security-center-show-login-flows', 'password-rotation']);
5169
+ const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
5143
5170
  if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginFlow.Login) {
5144
5171
  if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
5145
5172
  actions.setLoginState({
@@ -5148,7 +5175,7 @@ __webpack_require__.r(__webpack_exports__);
5148
5175
  });
5149
5176
  return;
5150
5177
  }
5151
- if (passwordRotationFlagEnabled && (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.isResetPasswordRequired)(user, store.root.appName)) {
5178
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_2__.isResetPasswordRequired)(user, store.root.appName)) {
5152
5179
  actions.setLoginState({
5153
5180
  step: _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.passwordRotationExpired,
5154
5181
  loading: false,
@@ -5157,7 +5184,7 @@ __webpack_require__.r(__webpack_exports__);
5157
5184
  });
5158
5185
  return;
5159
5186
  }
5160
- if (passwordRotationFlagEnabled && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.shouldShowPasswordRotationPromptFunc)(user)) {
5187
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.shouldShowPasswordRotationPromptFunc)(user)) {
5161
5188
  actions.setLoginState({
5162
5189
  step: _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.passwordRotationNotification,
5163
5190
  loading: false
@@ -5834,6 +5861,7 @@ const _excluded = ["callback", "error"],
5834
5861
  const preLogin = async payload => {
5835
5862
  const {
5836
5863
  email,
5864
+ username,
5837
5865
  recaptchaToken,
5838
5866
  invitationToken,
5839
5867
  callback
@@ -5844,10 +5872,13 @@ const _excluded = ["callback", "error"],
5844
5872
  try {
5845
5873
  const onRedirectTo = store.auth.onRedirectTo;
5846
5874
  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,
5875
+ const preLoginResult = await api.auth.preLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
5876
+ email
5877
+ } : {}, username ? {
5878
+ username
5879
+ } : {}, {
5849
5880
  tenantId
5850
- });
5881
+ }));
5851
5882
  const {
5852
5883
  address,
5853
5884
  idpType
@@ -5861,7 +5892,8 @@ const _excluded = ["callback", "error"],
5861
5892
  ssoRedirectUrl += `&redirect_uri=${window.location.origin}${oidcRedirectUrl}`;
5862
5893
  }
5863
5894
  if (_toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].isLoginWithSSOAvailable()) {
5864
- _toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].loginWithSSO(email);
5895
+ var _ref4;
5896
+ _toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].loginWithSSO((_ref4 = email != null ? email : username) != null ? _ref4 : '');
5865
5897
  setLoginState({
5866
5898
  loading: false
5867
5899
  });
@@ -5879,16 +5911,18 @@ const _excluded = ["callback", "error"],
5879
5911
  }, 2000);
5880
5912
  }
5881
5913
  } else {
5914
+ var _ref5;
5882
5915
  await ssoPreloginFailed({
5883
- email,
5916
+ email: (_ref5 = email != null ? email : username) != null ? _ref5 : '',
5884
5917
  recaptchaToken,
5885
5918
  callback,
5886
5919
  invitationToken
5887
5920
  });
5888
5921
  }
5889
5922
  } catch (e) {
5923
+ var _ref6;
5890
5924
  await ssoPreloginFailed({
5891
- email,
5925
+ email: (_ref6 = email != null ? email : username) != null ? _ref6 : '',
5892
5926
  recaptchaToken,
5893
5927
  callback,
5894
5928
  invitationToken,
@@ -5924,6 +5958,7 @@ const _excluded = ["callback", "error"],
5924
5958
  const login = async payload => {
5925
5959
  const {
5926
5960
  email,
5961
+ username,
5927
5962
  password,
5928
5963
  recaptchaToken,
5929
5964
  invitationToken,
@@ -5937,12 +5972,15 @@ const _excluded = ["callback", "error"],
5937
5972
  user,
5938
5973
  tenants = [],
5939
5974
  activeTenant
5940
- } = await api.auth.loginv2({
5941
- email,
5975
+ } = await api.auth.loginv2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
5976
+ email
5977
+ } : {}, username ? {
5978
+ username
5979
+ } : {}, {
5942
5980
  password,
5943
5981
  recaptchaToken,
5944
5982
  invitationToken
5945
- });
5983
+ }));
5946
5984
  const {
5947
5985
  onRedirectTo,
5948
5986
  routes
@@ -5954,8 +5992,8 @@ const _excluded = ["callback", "error"],
5954
5992
  preserveQueryParams: true
5955
5993
  });
5956
5994
  } else {
5957
- const [securityCenterLoginFlows, passwordRotationFlagEnabled] = await actions.getFeatureFlags(['security-center-show-login-flows', 'password-rotation']);
5958
- if (passwordRotationFlagEnabled && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
5995
+ const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
5996
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
5959
5997
  setLoginState({
5960
5998
  step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationExpired,
5961
5999
  loading: false,
@@ -5996,7 +6034,7 @@ const _excluded = ["callback", "error"],
5996
6034
  } else {
5997
6035
  if (isAuthenticated) {
5998
6036
  const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.shouldShowPasswordRotationPromptFunc)(user);
5999
- if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
6037
+ if (shouldShowPasswordRotationPrompt) {
6000
6038
  setLoginState({
6001
6039
  step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationNotification,
6002
6040
  loading: false
@@ -6182,6 +6220,7 @@ const _excluded = ["callback", "error"],
6182
6220
  } = _payload,
6183
6221
  payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded5);
6184
6222
  try {
6223
+ var _username;
6185
6224
  setLoginState({
6186
6225
  loading: true
6187
6226
  });
@@ -6189,9 +6228,16 @@ const _excluded = ["callback", "error"],
6189
6228
  if ((0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isEmailPayload)(payload)) {
6190
6229
  email = payload.email;
6191
6230
  }
6231
+ let username;
6232
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isUsernamePayload)(payload)) {
6233
+ username = payload.username;
6234
+ }
6192
6235
  // TODO: [Typescript 4.8] fix @frontegg/rest-api return value
6193
6236
  // @ts-ignore
6194
- const preloginRes = await api.auth.passwordlessPreLogin(payload);
6237
+ const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
6238
+ email,
6239
+ username: (_username = username) != null ? _username : ''
6240
+ }));
6195
6241
  // @ts-ignore
6196
6242
  const step = _consts__WEBPACK_IMPORTED_MODULE_16__.authStrategyLoginStepMap[payload.type];
6197
6243
  setLoginState({
@@ -6783,11 +6829,11 @@ const _excluded = ["callback", "error"],
6783
6829
  preserveQueryParams: true
6784
6830
  });
6785
6831
  } else {
6786
- var _ref4;
6832
+ var _ref7;
6787
6833
  if (user.id) {
6788
6834
  localStorage.setItem('userId', user.id);
6789
6835
  }
6790
- const quickLoginToRegister = (_ref4 = localStorage.getItem('register-quick-login')) != null ? _ref4 : loginState.quickLoginToRegister;
6836
+ const quickLoginToRegister = (_ref7 = localStorage.getItem('register-quick-login')) != null ? _ref7 : loginState.quickLoginToRegister;
6791
6837
  const shouldNavigateToRegisterQuickLogin = __shouldNavigateToRegisterQuickLogin(user);
6792
6838
  actions.afterAuthenticationStateUpdate({
6793
6839
  user: updatedUser,
@@ -7011,7 +7057,7 @@ const _excluded = ["callback"];
7011
7057
  async function __postLoginMfaAuthenticator(isAuthenticated, user, callback) {
7012
7058
  const loginState = store.auth.loginState;
7013
7059
  if (loginState.flow !== _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginFlow.Login) return;
7014
- const [securityCenterLoginFlows, passwordRotationFlagEnabled] = await actions.getFeatureFlags(['security-center-show-login-flows', 'password-rotation']);
7060
+ const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
7015
7061
  if (securityCenterLoginFlows && loginState.isBreachedPassword && !isAuthenticated) {
7016
7062
  actions.setLoginState({
7017
7063
  step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.breachedPassword,
@@ -7020,7 +7066,7 @@ const _excluded = ["callback"];
7020
7066
  callback == null ? void 0 : callback(true);
7021
7067
  return;
7022
7068
  }
7023
- if (passwordRotationFlagEnabled && (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
7069
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired)(user, store.root.appName)) {
7024
7070
  actions.setLoginState({
7025
7071
  step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.passwordRotationExpired,
7026
7072
  loading: false,
@@ -7031,7 +7077,7 @@ const _excluded = ["callback"];
7031
7077
  return;
7032
7078
  }
7033
7079
  const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.shouldShowPasswordRotationPromptFunc)(user);
7034
- if (passwordRotationFlagEnabled && shouldShowPasswordRotationPrompt) {
7080
+ if (shouldShowPasswordRotationPrompt) {
7035
7081
  actions.setLoginState({
7036
7082
  step: _interfaces__WEBPACK_IMPORTED_MODULE_2__.LoginStep.passwordRotationNotification,
7037
7083
  loading: false
@@ -7589,6 +7635,7 @@ __webpack_require__.r(__webpack_exports__);
7589
7635
  /* harmony export */ isAbsoluteUrl: () => (/* binding */ isAbsoluteUrl),
7590
7636
  /* harmony export */ isEmailPayload: () => (/* binding */ isEmailPayload),
7591
7637
  /* harmony export */ isOauthCallbackRoute: () => (/* binding */ isOauthCallbackRoute),
7638
+ /* harmony export */ isUsernamePayload: () => (/* binding */ isUsernamePayload),
7592
7639
  /* harmony export */ shouldShowPasswordRotationPromptFunc: () => (/* binding */ shouldShowPasswordRotationPromptFunc)
7593
7640
  /* harmony export */ });
7594
7641
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
@@ -7720,7 +7767,10 @@ const isOauthCallbackRoute = activeUri => {
7720
7767
  return activeUri === '/oauth/callback';
7721
7768
  };
7722
7769
  function isEmailPayload(payload) {
7723
- return 'email' in payload;
7770
+ return 'email' in payload && typeof payload['email'] === 'string';
7771
+ }
7772
+ function isUsernamePayload(payload) {
7773
+ return 'username' in payload && typeof payload['username'] === 'string';
7724
7774
  }
7725
7775
  const getBaseNameWithoutSlashSuffix = state => {
7726
7776
  const basename = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.ContextHolder.for(state.root.appName).getBasename();
@@ -16353,6 +16403,147 @@ const initialState = {
16353
16403
 
16354
16404
  /***/ }),
16355
16405
 
16406
+ /***/ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js":
16407
+ /*!***********************************************************************!*\
16408
+ !*** ../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js ***!
16409
+ \***********************************************************************/
16410
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16411
+
16412
+ "use strict";
16413
+ __webpack_require__.r(__webpack_exports__);
16414
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16415
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16416
+ /* harmony export */ });
16417
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
16418
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
16419
+ /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js");
16420
+
16421
+
16422
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
16423
+ const setUsernamesState = state => {
16424
+ Object.assign(store.auth.usernamesState, state);
16425
+ };
16426
+ const resetUsernamesState = () => {
16427
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_0__.deepResetState)(store, ['auth', 'usernamesState'], _state__WEBPACK_IMPORTED_MODULE_1__.initialState);
16428
+ };
16429
+ const loadUserOwnUsername = async () => {
16430
+ setUsernamesState({
16431
+ loading: true
16432
+ });
16433
+ try {
16434
+ const response = await api.usernames.getUserOwnUsername();
16435
+ setUsernamesState({
16436
+ username: response == null ? void 0 : response.username,
16437
+ loading: false,
16438
+ fetching: false
16439
+ });
16440
+ } catch (e) {
16441
+ setUsernamesState({
16442
+ error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e),
16443
+ fetching: false
16444
+ });
16445
+ } finally {
16446
+ setUsernamesState({
16447
+ loading: false,
16448
+ fetching: false
16449
+ });
16450
+ }
16451
+ };
16452
+ const saveUserUsername = async payload => {
16453
+ setUsernamesState({
16454
+ loading: true
16455
+ });
16456
+ try {
16457
+ if (store.auth.usernamesState.username === payload.username) {
16458
+ var _payload$callback;
16459
+ (_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload);
16460
+ return;
16461
+ }
16462
+ if (store.auth.usernamesState.username && store.auth.usernamesState.username !== payload.username) {
16463
+ await deleteUserUsername(store.auth.usernamesState.username);
16464
+ if (!payload.username) {
16465
+ var _payload$callback2;
16466
+ setUsernamesState({
16467
+ username: undefined,
16468
+ loading: false
16469
+ });
16470
+ (_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload);
16471
+ return;
16472
+ }
16473
+ }
16474
+ if (!!payload.username) {
16475
+ var _payload$callback3;
16476
+ await api.usernames.createUsername(payload);
16477
+ setUsernamesState({
16478
+ username: payload.username,
16479
+ loading: false
16480
+ });
16481
+ (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload);
16482
+ }
16483
+ } catch (e) {
16484
+ setUsernamesState({
16485
+ error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e)
16486
+ });
16487
+ } finally {
16488
+ setUsernamesState({
16489
+ loading: false
16490
+ });
16491
+ }
16492
+ };
16493
+ const deleteUserUsername = async username => {
16494
+ setUsernamesState({
16495
+ loading: true
16496
+ });
16497
+ try {
16498
+ await api.usernames.deleteUsername(username);
16499
+ setUsernamesState({
16500
+ username: undefined,
16501
+ loading: false
16502
+ });
16503
+ } catch (e) {
16504
+ setUsernamesState({
16505
+ error: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.errorHandler)(e)
16506
+ });
16507
+ } finally {
16508
+ setUsernamesState({
16509
+ loading: false
16510
+ });
16511
+ }
16512
+ };
16513
+ return {
16514
+ resetUsernamesState,
16515
+ loadUserOwnUsername,
16516
+ saveUserUsername,
16517
+ deleteUserUsername
16518
+ };
16519
+ });
16520
+
16521
+ /***/ }),
16522
+
16523
+ /***/ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js":
16524
+ /*!*********************************************************************!*\
16525
+ !*** ../../dist/@frontegg/redux-store/auth/UsernamesState/state.js ***!
16526
+ \*********************************************************************/
16527
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
16528
+
16529
+ "use strict";
16530
+ __webpack_require__.r(__webpack_exports__);
16531
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16532
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
16533
+ /* harmony export */ initialState: () => (/* binding */ initialState)
16534
+ /* harmony export */ });
16535
+ /* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
16536
+
16537
+ const initialState = {
16538
+ loading: false,
16539
+ error: null,
16540
+ username: undefined,
16541
+ fetching: true
16542
+ };
16543
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_0__.createProxy)(initialState, overrideState));
16544
+
16545
+ /***/ }),
16546
+
16356
16547
  /***/ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js":
16357
16548
  /*!*******************************************************************************!*\
16358
16549
  !*** ../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js ***!
@@ -16466,6 +16657,7 @@ __webpack_require__.r(__webpack_exports__);
16466
16657
  /* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
16467
16658
  /* harmony export */ isResetPasswordRequired: () => (/* binding */ isResetPasswordRequired),
16468
16659
  /* harmony export */ isSteppedUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.isSteppedUp),
16660
+ /* harmony export */ isUsernamePayload: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
16469
16661
  /* harmony export */ mapMetaDataObjectToActions: () => (/* binding */ mapMetaDataObjectToActions),
16470
16662
  /* harmony export */ prepareIdentifiersForSignup: () => (/* binding */ prepareIdentifiersForSignup),
16471
16663
  /* harmony export */ redirectByStepUpUrl: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.redirectByStepUpUrl),
@@ -16608,76 +16800,78 @@ __webpack_require__.r(__webpack_exports__);
16608
16800
  /* 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
16801
  /* 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
16802
  /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/state.js");
16611
- /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/actions.js");
16803
+ /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/actions.js");
16612
16804
  /* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/state.js");
16613
- /* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/actions.js");
16805
+ /* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/actions.js");
16614
16806
  /* harmony import */ var _ActivateAccountState__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ActivateAccountState */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/state.js");
16615
- /* harmony import */ var _ActivateAccountState__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./ActivateAccountState */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/actions.js");
16807
+ /* harmony import */ var _ActivateAccountState__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./ActivateAccountState */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/actions.js");
16616
16808
  /* harmony import */ var _UnlockAccountState__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./UnlockAccountState */ "../../dist/@frontegg/redux-store/auth/UnlockAccountState/state.js");
16617
- /* harmony import */ var _UnlockAccountState__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./UnlockAccountState */ "../../dist/@frontegg/redux-store/auth/UnlockAccountState/actions.js");
16809
+ /* harmony import */ var _UnlockAccountState__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./UnlockAccountState */ "../../dist/@frontegg/redux-store/auth/UnlockAccountState/actions.js");
16618
16810
  /* harmony import */ var _ApiTokensState__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ApiTokensState */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/state.js");
16619
- /* harmony import */ var _ApiTokensState__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./ApiTokensState */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/actions.js");
16811
+ /* harmony import */ var _ApiTokensState__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./ApiTokensState */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/actions.js");
16620
16812
  /* harmony import */ var _ApplicationsState__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ApplicationsState */ "../../dist/@frontegg/redux-store/auth/ApplicationsState/state.js");
16621
- /* harmony import */ var _ApplicationsState__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./ApplicationsState */ "../../dist/@frontegg/redux-store/auth/ApplicationsState/actions.js");
16813
+ /* harmony import */ var _ApplicationsState__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./ApplicationsState */ "../../dist/@frontegg/redux-store/auth/ApplicationsState/actions.js");
16622
16814
  /* harmony import */ var _CustomLoginState__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./CustomLoginState */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/state.js");
16623
- /* harmony import */ var _CustomLoginState__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./CustomLoginState */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/actions.js");
16815
+ /* harmony import */ var _CustomLoginState__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./CustomLoginState */ "../../dist/@frontegg/redux-store/auth/CustomLoginState/actions.js");
16624
16816
  /* harmony import */ var _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ForgotPasswordState */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/state.js");
16625
- /* harmony import */ var _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./ForgotPasswordState */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/actions.js");
16817
+ /* harmony import */ var _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./ForgotPasswordState */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/actions.js");
16626
16818
  /* harmony import */ var _PasswordRotationState__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./PasswordRotationState */ "../../dist/@frontegg/redux-store/auth/PasswordRotationState/state.js");
16627
- /* harmony import */ var _PasswordRotationState__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./PasswordRotationState */ "../../dist/@frontegg/redux-store/auth/PasswordRotationState/actions.js");
16819
+ /* harmony import */ var _PasswordRotationState__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./PasswordRotationState */ "../../dist/@frontegg/redux-store/auth/PasswordRotationState/actions.js");
16628
16820
  /* harmony import */ var _GroupsState__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./GroupsState */ "../../dist/@frontegg/redux-store/auth/GroupsState/state.js");
16629
- /* harmony import */ var _GroupsState__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./GroupsState */ "../../dist/@frontegg/redux-store/auth/GroupsState/actions.js");
16821
+ /* harmony import */ var _GroupsState__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./GroupsState */ "../../dist/@frontegg/redux-store/auth/GroupsState/actions.js");
16630
16822
  /* harmony import */ var _GroupsDialogsState__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./GroupsDialogsState */ "../../dist/@frontegg/redux-store/auth/GroupsDialogsState/state.js");
16631
- /* harmony import */ var _GroupsDialogsState__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./GroupsDialogsState */ "../../dist/@frontegg/redux-store/auth/GroupsDialogsState/actions.js");
16823
+ /* harmony import */ var _GroupsDialogsState__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./GroupsDialogsState */ "../../dist/@frontegg/redux-store/auth/GroupsDialogsState/actions.js");
16632
16824
  /* harmony import */ var _ImpersonateState__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./ImpersonateState */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/state.js");
16633
- /* harmony import */ var _ImpersonateState__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./ImpersonateState */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/actions.js");
16825
+ /* harmony import */ var _ImpersonateState__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./ImpersonateState */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/actions.js");
16634
16826
  /* harmony import */ var _LoginState__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./LoginState */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
16635
- /* harmony import */ var _LoginState__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./LoginState */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/index.js");
16827
+ /* harmony import */ var _LoginState__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./LoginState */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/index.js");
16636
16828
  /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/state.js");
16637
- /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/actions.js");
16829
+ /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/actions.js");
16638
16830
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/state.js");
16639
16831
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/state.js");
16640
- /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
16641
- /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/actions.js");
16832
+ /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
16833
+ /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/actions.js");
16642
16834
  /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/state.js");
16643
- /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/actions.js");
16835
+ /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/actions.js");
16644
16836
  /* harmony import */ var _ProfileState__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ProfileState */ "../../dist/@frontegg/redux-store/auth/ProfileState/state.js");
16645
- /* harmony import */ var _ProfileState__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./ProfileState */ "../../dist/@frontegg/redux-store/auth/ProfileState/actions.js");
16837
+ /* harmony import */ var _ProfileState__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./ProfileState */ "../../dist/@frontegg/redux-store/auth/ProfileState/actions.js");
16646
16838
  /* harmony import */ var _ProvisioningState__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ProvisioningState */ "../../dist/@frontegg/redux-store/auth/ProvisioningState/state.js");
16647
- /* harmony import */ var _ProvisioningState__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./ProvisioningState */ "../../dist/@frontegg/redux-store/auth/ProvisioningState/actions.js");
16839
+ /* harmony import */ var _ProvisioningState__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./ProvisioningState */ "../../dist/@frontegg/redux-store/auth/ProvisioningState/actions.js");
16648
16840
  /* harmony import */ var _ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ResetPhoneNumberState */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/state.js");
16649
- /* harmony import */ var _ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./ResetPhoneNumberState */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/actions.js");
16841
+ /* harmony import */ var _ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./ResetPhoneNumberState */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/actions.js");
16650
16842
  /* harmony import */ var _RolesState__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./RolesState */ "../../dist/@frontegg/redux-store/auth/RolesState/state.js");
16651
- /* harmony import */ var _RolesState__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./RolesState */ "../../dist/@frontegg/redux-store/auth/RolesState/actions.js");
16843
+ /* harmony import */ var _RolesState__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./RolesState */ "../../dist/@frontegg/redux-store/auth/RolesState/actions.js");
16652
16844
  /* 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 _Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./Security/RestrictionsState */ "../../dist/@frontegg/redux-store/auth/Security/RestrictionsState/actions.js");
16845
+ /* harmony import */ var _Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./Security/RestrictionsState */ "../../dist/@frontegg/redux-store/auth/Security/RestrictionsState/actions.js");
16654
16846
  /* 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 _Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./Security/SecurityCenterState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/actions.js");
16847
+ /* harmony import */ var _Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./Security/SecurityCenterState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/actions.js");
16656
16848
  /* 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 _Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./Security/SecurityPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/actions.js");
16849
+ /* harmony import */ var _Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./Security/SecurityPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/actions.js");
16658
16850
  /* 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 _Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./Security/SessionsPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SessionsPolicyState/actions.js");
16851
+ /* harmony import */ var _Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./Security/SessionsPolicyState */ "../../dist/@frontegg/redux-store/auth/Security/SessionsPolicyState/actions.js");
16660
16852
  /* harmony import */ var _SessionsState__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./SessionsState */ "../../dist/@frontegg/redux-store/auth/SessionsState/state.js");
16661
- /* harmony import */ var _SessionsState__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./SessionsState */ "../../dist/@frontegg/redux-store/auth/SessionsState/actions.js");
16853
+ /* harmony import */ var _SessionsState__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./SessionsState */ "../../dist/@frontegg/redux-store/auth/SessionsState/actions.js");
16662
16854
  /* harmony import */ var _SignUpState__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./SignUpState */ "../../dist/@frontegg/redux-store/auth/SignUpState/state.js");
16663
- /* harmony import */ var _SignUpState__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./SignUpState */ "../../dist/@frontegg/redux-store/auth/SignUpState/actions.js");
16855
+ /* harmony import */ var _SignUpState__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./SignUpState */ "../../dist/@frontegg/redux-store/auth/SignUpState/actions.js");
16664
16856
  /* harmony import */ var _SmsState__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./SmsState */ "../../dist/@frontegg/redux-store/auth/SmsState/state.js");
16665
- /* harmony import */ var _SmsState__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./SmsState */ "../../dist/@frontegg/redux-store/auth/SmsState/actions.js");
16857
+ /* harmony import */ var _SmsState__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./SmsState */ "../../dist/@frontegg/redux-store/auth/SmsState/actions.js");
16666
16858
  /* harmony import */ var _SocialLoginState__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./SocialLoginState */ "../../dist/@frontegg/redux-store/auth/SocialLoginState/state.js");
16667
- /* harmony import */ var _SocialLoginState__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./SocialLoginState */ "../../dist/@frontegg/redux-store/auth/SocialLoginState/actions.js");
16859
+ /* harmony import */ var _SocialLoginState__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./SocialLoginState */ "../../dist/@frontegg/redux-store/auth/SocialLoginState/actions.js");
16668
16860
  /* harmony import */ var _SSOState__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./SSOState */ "../../dist/@frontegg/redux-store/auth/SSOState/state.js");
16669
- /* harmony import */ var _SSOState__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./SSOState */ "../../dist/@frontegg/redux-store/auth/SSOState/actions/index.js");
16861
+ /* harmony import */ var _SSOState__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./SSOState */ "../../dist/@frontegg/redux-store/auth/SSOState/actions/index.js");
16670
16862
  /* harmony import */ var _StepUpState__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./StepUpState */ "../../dist/@frontegg/redux-store/auth/StepUpState/state.js");
16671
- /* harmony import */ var _StepUpState__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./StepUpState */ "../../dist/@frontegg/redux-store/auth/StepUpState/actions/index.js");
16863
+ /* harmony import */ var _StepUpState__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./StepUpState */ "../../dist/@frontegg/redux-store/auth/StepUpState/actions/index.js");
16672
16864
  /* harmony import */ var _TeamState__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./TeamState */ "../../dist/@frontegg/redux-store/auth/TeamState/state.js");
16673
- /* harmony import */ var _TeamState__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./TeamState */ "../../dist/@frontegg/redux-store/auth/TeamState/actions/index.js");
16865
+ /* harmony import */ var _TeamState__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./TeamState */ "../../dist/@frontegg/redux-store/auth/TeamState/actions/index.js");
16674
16866
  /* harmony import */ var _TenantsState__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./TenantsState */ "../../dist/@frontegg/redux-store/auth/TenantsState/state.js");
16675
- /* harmony import */ var _TenantsState__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./TenantsState */ "../../dist/@frontegg/redux-store/auth/TenantsState/actions.js");
16676
- /* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/state.js");
16677
- /* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js");
16867
+ /* harmony import */ var _TenantsState__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./TenantsState */ "../../dist/@frontegg/redux-store/auth/TenantsState/actions.js");
16868
+ /* harmony import */ var _UsernamesState__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/state.js");
16869
+ /* harmony import */ var _UsernamesState__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js");
16870
+ /* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/state.js");
16871
+ /* harmony import */ var _UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./UsersEmailsPolicyState */ "../../dist/@frontegg/redux-store/auth/UsersEmailsPolicyState/actions.js");
16678
16872
  /* 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 _helpers__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
16680
- /* harmony import */ var _Entitlements__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./Entitlements */ "../../dist/@frontegg/redux-store/auth/Entitlements/actions.js");
16873
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
16874
+ /* harmony import */ var _Entitlements__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./Entitlements */ "../../dist/@frontegg/redux-store/auth/Entitlements/actions.js");
16681
16875
  /* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
16682
16876
  /* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
16683
16877
  /* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
@@ -16772,6 +16966,8 @@ const _excluded = ["routes"],
16772
16966
 
16773
16967
 
16774
16968
 
16969
+
16970
+
16775
16971
 
16776
16972
 
16777
16973
 
@@ -16829,14 +17025,15 @@ const createAuthState = _overrideState => {
16829
17025
  stepUpState: (0,_StepUpState__WEBPACK_IMPORTED_MODULE_53__["default"])(overrideState == null ? void 0 : overrideState.stepUpState),
16830
17026
  teamState: (0,_TeamState__WEBPACK_IMPORTED_MODULE_54__["default"])(overrideState == null ? void 0 : overrideState.teamState),
16831
17027
  tenantsState: (0,_TenantsState__WEBPACK_IMPORTED_MODULE_55__["default"])(overrideState == null ? void 0 : overrideState.tenantsState),
16832
- userEmailPolicyState: (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_56__["default"])(overrideState == null ? void 0 : overrideState.userEmailPolicyState)
17028
+ usernamesState: (0,_UsernamesState__WEBPACK_IMPORTED_MODULE_56__["default"])(overrideState == null ? void 0 : overrideState.usernamesState),
17029
+ userEmailPolicyState: (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_57__["default"])(overrideState == null ? void 0 : overrideState.userEmailPolicyState)
16833
17030
  }));
16834
17031
  };
16835
17032
  const buildAuthActions = (store, api, actions, snapshotAuthState) => {
16836
17033
  const setAuthState = state => {
16837
17034
  Object.keys(state).forEach(key => {
16838
17035
  const authKey = key;
16839
- if ((0,_helpers__WEBPACK_IMPORTED_MODULE_57__.isProxy)(store.auth[authKey])) {
17036
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_58__.isProxy)(store.auth[authKey])) {
16840
17037
  Object.assign(store.auth[authKey], state[authKey]);
16841
17038
  } else {
16842
17039
  store.auth[authKey] = state[authKey];
@@ -16844,7 +17041,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
16844
17041
  });
16845
17042
  };
16846
17043
  const resetAuthState = (state = {}) => {
16847
- (0,_helpers__WEBPACK_IMPORTED_MODULE_57__.deepResetState)(store, ['auth'], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, snapshotAuthState, state));
17044
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_58__.deepResetState)(store, ['auth'], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, snapshotAuthState, state));
16848
17045
  };
16849
17046
  const setUser = user => {
16850
17047
  setAuthState({
@@ -16862,41 +17059,42 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
16862
17059
  })
16863
17060
  });
16864
17061
  };
16865
- const acceptInvitationActions = (0,_AcceptInvitationState__WEBPACK_IMPORTED_MODULE_58__["default"])(store, api, actions);
16866
- const accountSettingsActions = (0,_AccountSettingsState__WEBPACK_IMPORTED_MODULE_59__["default"])(store, api, actions);
16867
- const activateAccountActions = (0,_ActivateAccountState__WEBPACK_IMPORTED_MODULE_60__["default"])(store, api, actions);
16868
- const unlockAccountActions = (0,_UnlockAccountState__WEBPACK_IMPORTED_MODULE_61__["default"])(store, api, actions);
16869
- const apiTokensActions = (0,_ApiTokensState__WEBPACK_IMPORTED_MODULE_62__["default"])(store, api, actions);
16870
- const applicationsActions = (0,_ApplicationsState__WEBPACK_IMPORTED_MODULE_63__["default"])(store, api, actions);
16871
- const customLoginActions = (0,_CustomLoginState__WEBPACK_IMPORTED_MODULE_64__["default"])(store, api, actions);
16872
- const entitlementsActions = (0,_Entitlements__WEBPACK_IMPORTED_MODULE_65__["default"])(store, api, actions);
16873
- const forgotPasswordActions = (0,_ForgotPasswordState__WEBPACK_IMPORTED_MODULE_66__["default"])(store, api, actions);
16874
- const passwordRotationActions = (0,_PasswordRotationState__WEBPACK_IMPORTED_MODULE_67__["default"])(store, api, actions);
16875
- const groupsActions = (0,_GroupsState__WEBPACK_IMPORTED_MODULE_68__["default"])(store, api, actions);
16876
- const groupsDialogsActions = (0,_GroupsDialogsState__WEBPACK_IMPORTED_MODULE_69__["default"])(store, api, actions);
16877
- const impersonateActions = (0,_ImpersonateState__WEBPACK_IMPORTED_MODULE_70__["default"])(store, api, actions);
16878
- const loginActions = (0,_LoginState__WEBPACK_IMPORTED_MODULE_71__["default"])(store, api, actions);
16879
- const mfaActions = (0,_MfaState__WEBPACK_IMPORTED_MODULE_72__["default"])(store, api, actions);
16880
- const allAccountsActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_73__["default"])(store, api, actions);
16881
- const allAccountsDialogActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_74__["default"])(store, api, actions);
16882
- const passkeysActions = (0,_PasskeysState__WEBPACK_IMPORTED_MODULE_75__["default"])(store, api, actions);
16883
- const profileActions = (0,_ProfileState__WEBPACK_IMPORTED_MODULE_76__["default"])(store, api, actions);
16884
- const provisioningActions = (0,_ProvisioningState__WEBPACK_IMPORTED_MODULE_77__["default"])(store, api, actions);
16885
- const resetPhoneNumberActions = (0,_ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_78__["default"])(store, api, actions);
16886
- const rolesActions = (0,_RolesState__WEBPACK_IMPORTED_MODULE_79__["default"])(store, api, actions);
16887
- const restrictionsActions = (0,_Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_80__["default"])(store, api, actions);
16888
- const securityCenterActions = (0,_Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_81__["default"])(store, api, actions);
16889
- const securityPolicyActions = (0,_Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_82__["default"])(store, api, actions);
16890
- const sessionsPolicyActions = (0,_Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_83__["default"])(store, api, actions);
16891
- const sessionsActions = (0,_SessionsState__WEBPACK_IMPORTED_MODULE_84__["default"])(store, api, actions);
16892
- const signUpActions = (0,_SignUpState__WEBPACK_IMPORTED_MODULE_85__["default"])(store, api, actions);
16893
- const smsActions = (0,_SmsState__WEBPACK_IMPORTED_MODULE_86__["default"])(store, api, actions);
16894
- const socialLoginActions = (0,_SocialLoginState__WEBPACK_IMPORTED_MODULE_87__["default"])(store, api, actions);
16895
- const ssoActions = (0,_SSOState__WEBPACK_IMPORTED_MODULE_88__["default"])(store, api, actions);
16896
- const stepUpActions = (0,_StepUpState__WEBPACK_IMPORTED_MODULE_89__["default"])(store, api, actions);
16897
- const teamActions = (0,_TeamState__WEBPACK_IMPORTED_MODULE_90__["default"])(store, api, actions);
16898
- const tenantsActions = (0,_TenantsState__WEBPACK_IMPORTED_MODULE_91__["default"])(store, api, actions);
16899
- const usersEmailsPolicyActions = (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_92__["default"])(store, api, actions);
17062
+ const acceptInvitationActions = (0,_AcceptInvitationState__WEBPACK_IMPORTED_MODULE_59__["default"])(store, api, actions);
17063
+ const accountSettingsActions = (0,_AccountSettingsState__WEBPACK_IMPORTED_MODULE_60__["default"])(store, api, actions);
17064
+ const activateAccountActions = (0,_ActivateAccountState__WEBPACK_IMPORTED_MODULE_61__["default"])(store, api, actions);
17065
+ const unlockAccountActions = (0,_UnlockAccountState__WEBPACK_IMPORTED_MODULE_62__["default"])(store, api, actions);
17066
+ const apiTokensActions = (0,_ApiTokensState__WEBPACK_IMPORTED_MODULE_63__["default"])(store, api, actions);
17067
+ const applicationsActions = (0,_ApplicationsState__WEBPACK_IMPORTED_MODULE_64__["default"])(store, api, actions);
17068
+ const customLoginActions = (0,_CustomLoginState__WEBPACK_IMPORTED_MODULE_65__["default"])(store, api, actions);
17069
+ const entitlementsActions = (0,_Entitlements__WEBPACK_IMPORTED_MODULE_66__["default"])(store, api, actions);
17070
+ const forgotPasswordActions = (0,_ForgotPasswordState__WEBPACK_IMPORTED_MODULE_67__["default"])(store, api, actions);
17071
+ const passwordRotationActions = (0,_PasswordRotationState__WEBPACK_IMPORTED_MODULE_68__["default"])(store, api, actions);
17072
+ const groupsActions = (0,_GroupsState__WEBPACK_IMPORTED_MODULE_69__["default"])(store, api, actions);
17073
+ const groupsDialogsActions = (0,_GroupsDialogsState__WEBPACK_IMPORTED_MODULE_70__["default"])(store, api, actions);
17074
+ const impersonateActions = (0,_ImpersonateState__WEBPACK_IMPORTED_MODULE_71__["default"])(store, api, actions);
17075
+ const loginActions = (0,_LoginState__WEBPACK_IMPORTED_MODULE_72__["default"])(store, api, actions);
17076
+ const mfaActions = (0,_MfaState__WEBPACK_IMPORTED_MODULE_73__["default"])(store, api, actions);
17077
+ const allAccountsActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_74__["default"])(store, api, actions);
17078
+ const allAccountsDialogActions = (0,_MSP__WEBPACK_IMPORTED_MODULE_75__["default"])(store, api, actions);
17079
+ const passkeysActions = (0,_PasskeysState__WEBPACK_IMPORTED_MODULE_76__["default"])(store, api, actions);
17080
+ const profileActions = (0,_ProfileState__WEBPACK_IMPORTED_MODULE_77__["default"])(store, api, actions);
17081
+ const provisioningActions = (0,_ProvisioningState__WEBPACK_IMPORTED_MODULE_78__["default"])(store, api, actions);
17082
+ const resetPhoneNumberActions = (0,_ResetPhoneNumberState__WEBPACK_IMPORTED_MODULE_79__["default"])(store, api, actions);
17083
+ const rolesActions = (0,_RolesState__WEBPACK_IMPORTED_MODULE_80__["default"])(store, api, actions);
17084
+ const restrictionsActions = (0,_Security_RestrictionsState__WEBPACK_IMPORTED_MODULE_81__["default"])(store, api, actions);
17085
+ const securityCenterActions = (0,_Security_SecurityCenterState__WEBPACK_IMPORTED_MODULE_82__["default"])(store, api, actions);
17086
+ const securityPolicyActions = (0,_Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_83__["default"])(store, api, actions);
17087
+ const sessionsPolicyActions = (0,_Security_SessionsPolicyState__WEBPACK_IMPORTED_MODULE_84__["default"])(store, api, actions);
17088
+ const sessionsActions = (0,_SessionsState__WEBPACK_IMPORTED_MODULE_85__["default"])(store, api, actions);
17089
+ const signUpActions = (0,_SignUpState__WEBPACK_IMPORTED_MODULE_86__["default"])(store, api, actions);
17090
+ const smsActions = (0,_SmsState__WEBPACK_IMPORTED_MODULE_87__["default"])(store, api, actions);
17091
+ const socialLoginActions = (0,_SocialLoginState__WEBPACK_IMPORTED_MODULE_88__["default"])(store, api, actions);
17092
+ const ssoActions = (0,_SSOState__WEBPACK_IMPORTED_MODULE_89__["default"])(store, api, actions);
17093
+ const stepUpActions = (0,_StepUpState__WEBPACK_IMPORTED_MODULE_90__["default"])(store, api, actions);
17094
+ const teamActions = (0,_TeamState__WEBPACK_IMPORTED_MODULE_91__["default"])(store, api, actions);
17095
+ const tenantsActions = (0,_TenantsState__WEBPACK_IMPORTED_MODULE_92__["default"])(store, api, actions);
17096
+ const usernamesActions = (0,_UsernamesState__WEBPACK_IMPORTED_MODULE_93__["default"])(store, api, actions);
17097
+ const usersEmailsPolicyActions = (0,_UsersEmailsPolicyState__WEBPACK_IMPORTED_MODULE_94__["default"])(store, api, actions);
16900
17098
  const stateActions = {
16901
17099
  acceptInvitationActions,
16902
17100
  accountSettingsActions,
@@ -16932,6 +17130,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
16932
17130
  stepUpActions,
16933
17131
  teamActions,
16934
17132
  tenantsActions,
17133
+ usernamesActions,
16935
17134
  usersEmailsPolicyActions
16936
17135
  };
16937
17136
  return [(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
@@ -18700,6 +18899,7 @@ __webpack_require__.r(__webpack_exports__);
18700
18899
  /* harmony export */ isProxy: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.isProxy),
18701
18900
  /* harmony export */ isResetPasswordRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired),
18702
18901
  /* harmony export */ isSteppedUp: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isSteppedUp),
18902
+ /* harmony export */ isUsernamePayload: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
18703
18903
  /* harmony export */ mapMetaDataObjectToActions: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.mapMetaDataObjectToActions),
18704
18904
  /* harmony export */ omitProps: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.omitProps),
18705
18905
  /* harmony export */ prepareIdentifiersForSignup: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.prepareIdentifiersForSignup),
@@ -18725,7 +18925,7 @@ __webpack_require__.r(__webpack_exports__);
18725
18925
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
18726
18926
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
18727
18927
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
18728
- /** @license Frontegg v7.75.0
18928
+ /** @license Frontegg v7.76.0-alpha.0
18729
18929
  *
18730
18930
  * This source code is licensed under the MIT license found in the
18731
18931
  * LICENSE file in the root directory of this source tree.
@@ -19833,8 +20033,9 @@ __webpack_require__.r(__webpack_exports__);
19833
20033
  /* harmony import */ var _teamActions_mocks__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./teamActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/teamActions.mocks.js");
19834
20034
  /* harmony import */ var _tenantsActions_mocks__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./tenantsActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/tenantsActions.mocks.js");
19835
20035
  /* 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 _usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./usersEmailsPolicyActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/usersEmailsPolicyActions.mocks.js");
19837
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
20036
+ /* harmony import */ var _usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./usersEmailsPolicyActions.mocks */ "../../dist/@frontegg/redux-store/mocks/auth-mocks/usersEmailsPolicyActions.mocks.js");
20037
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
20038
+ /* harmony import */ var _auth_UsernamesState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../../auth/UsernamesState */ "../../dist/@frontegg/redux-store/auth/UsernamesState/actions.js");
19838
20039
 
19839
20040
 
19840
20041
  const _excluded = ["requestName"];
@@ -19874,6 +20075,7 @@ const _excluded = ["requestName"];
19874
20075
 
19875
20076
 
19876
20077
 
20078
+
19877
20079
 
19878
20080
 
19879
20081
  const buildAuthActions = (store, api, actions, snapshotAuthState) => {
@@ -19911,7 +20113,8 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
19911
20113
  const stepUpActions = (0,_stepUpActions_mocks__WEBPACK_IMPORTED_MODULE_33__["default"])(store, api, actions);
19912
20114
  const teamActions = (0,_teamActions_mocks__WEBPACK_IMPORTED_MODULE_34__["default"])(store, api, actions);
19913
20115
  const tenantsActions = (0,_tenantsActions_mocks__WEBPACK_IMPORTED_MODULE_35__["default"])(store, api, actions);
19914
- const usersEmailsPolicyActions = (0,_usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_36__["default"])(store, api, actions);
20116
+ const usernamesActions = (0,_auth_UsernamesState__WEBPACK_IMPORTED_MODULE_36__["default"])(store, api, actions);
20117
+ const usersEmailsPolicyActions = (0,_usersEmailsPolicyActions_mocks__WEBPACK_IMPORTED_MODULE_37__["default"])(store, api, actions);
19915
20118
  const authStateActions = {
19916
20119
  acceptInvitationActions,
19917
20120
  accountSettingsActions,
@@ -19947,12 +20150,13 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
19947
20150
  stepUpActions,
19948
20151
  teamActions,
19949
20152
  tenantsActions,
20153
+ usernamesActions,
19950
20154
  usersEmailsPolicyActions
19951
20155
  };
19952
20156
  const setAuthState = state => {
19953
20157
  Object.keys(state).forEach(key => {
19954
20158
  const authKey = key;
19955
- if ((0,_helpers__WEBPACK_IMPORTED_MODULE_37__.isProxy)(store.auth[authKey])) {
20159
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_38__.isProxy)(store.auth[authKey])) {
19956
20160
  Object.assign(store.auth[authKey], state[authKey]);
19957
20161
  } else {
19958
20162
  store.auth[authKey] = state[authKey];
@@ -19961,7 +20165,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
19961
20165
  };
19962
20166
  // eslint-disable-next-line @typescript-eslint/no-empty-function
19963
20167
  const resetAuthState = () => {
19964
- (0,_helpers__WEBPACK_IMPORTED_MODULE_37__.deepResetState)(store, ['auth'], snapshotAuthState);
20168
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_38__.deepResetState)(store, ['auth'], snapshotAuthState);
19965
20169
  };
19966
20170
  const setUser = user => {
19967
20171
  setAuthState({
@@ -19985,7 +20189,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
19985
20189
  setErrorByRequestName,
19986
20190
  resetAuthState,
19987
20191
  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);
20192
+ }, 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
20193
  return {
19990
20194
  authActions,
19991
20195
  authStateActions
@@ -24995,16 +25199,16 @@ __webpack_require__.r(__webpack_exports__);
24995
25199
  /* harmony export */ });
24996
25200
  class FronteggNativeModule {
24997
25201
  constructor() {
24998
- this.loginWithSSO = email => {
25202
+ this.loginWithSSO = identifier => {
24999
25203
  if (this.isIOSNativeBridgeAvailable()) {
25000
25204
  var _window$webkit, _window$webkit$messag, _window$webkit$messag2;
25001
25205
  (_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
25206
  action: 'loginWithSSO',
25003
- payload: email
25207
+ payload: identifier
25004
25208
  }));
25005
25209
  } else if (this.isAndroidNativeBridgeAvailable()) {
25006
25210
  var _window$FronteggNativ;
25007
- (_window$FronteggNativ = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ.loginWithSSO(email);
25211
+ (_window$FronteggNativ = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ.loginWithSSO(identifier);
25008
25212
  } else {
25009
25213
  throw new Error('FronteggNativeBridge is not available');
25010
25214
  }
@@ -26932,6 +27136,7 @@ const _excluded = ["type"],
26932
27136
 
26933
27137
 
26934
27138
 
27139
+
26935
27140
  class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.BaseApiClient {
26936
27141
  constructor(appName) {
26937
27142
  super(appName);
@@ -27477,11 +27682,19 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
27477
27682
  });
27478
27683
  };
27479
27684
  this.passwordlessPreLogin = async _ref => {
27685
+ var _usernameToTypeMapper;
27480
27686
  let {
27481
27687
  type
27482
27688
  } = _ref,
27483
27689
  body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded);
27484
- return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.auth.v1}/passwordless/${type.toLocaleLowerCase()}/prelogin`, body);
27690
+ const usernameToTypeMapper = {
27691
+ [_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndCode]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.Code,
27692
+ [_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndMagicLink]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.MagicLink,
27693
+ [_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndSms]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.SmsCode,
27694
+ [_enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.UsernameAndPassword]: _enums__WEBPACK_IMPORTED_MODULE_3__.AuthStrategyEnum.EmailAndPassword
27695
+ };
27696
+ const mappedType = ((_usernameToTypeMapper = usernameToTypeMapper[type]) == null ? void 0 : _usernameToTypeMapper.toLowerCase()) || type.toLowerCase();
27697
+ return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.auth.v1}/passwordless/${mappedType}/prelogin`, body);
27485
27698
  };
27486
27699
  this.passwordlessPostLoginV2 = async _ref2 => {
27487
27700
  let {
@@ -28297,6 +28510,9 @@ const urls = {
28297
28510
  },
28298
28511
  phoneNumbers: {
28299
28512
  v1: '/identity/resources/users/phone-numbers/v1'
28513
+ },
28514
+ usernames: {
28515
+ v1: '/identity/resources/usernames/v1'
28300
28516
  }
28301
28517
  },
28302
28518
  team: {
@@ -28843,31 +29059,31 @@ __webpack_require__.r(__webpack_exports__);
28843
29059
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28844
29060
  /* harmony export */ ApplicationAccessType: () => (/* reexport safe */ _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__.ApplicationAccessType),
28845
29061
  /* harmony export */ AuthStrategyEnum: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.AuthStrategyEnum),
28846
- /* harmony export */ ContextHolder: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_43__.ContextHolder),
29062
+ /* harmony export */ ContextHolder: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.ContextHolder),
28847
29063
  /* harmony export */ DirectoryApi: () => (/* reexport safe */ _directory_index__WEBPACK_IMPORTED_MODULE_11__.DirectoryApi),
28848
29064
  /* harmony export */ FRONTEGG_SEPARATE_TABS_BY_TENANT: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_4__.FRONTEGG_SEPARATE_TABS_BY_TENANT),
28849
29065
  /* harmony export */ FeatureFlags: () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_10__.FeatureFlags),
28850
29066
  /* harmony export */ FeatureFlagsApi: () => (/* reexport safe */ _feature_flags_index__WEBPACK_IMPORTED_MODULE_10__.FeatureFlagsApi),
28851
- /* harmony export */ FetchClient: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_42__.FetchClient),
28852
- /* harmony export */ FronteggApiError: () => (/* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_44__.FronteggApiError),
28853
- /* harmony export */ FronteggContext: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_43__.FronteggContext),
29067
+ /* harmony export */ FetchClient: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_43__.FetchClient),
29068
+ /* harmony export */ FronteggApiError: () => (/* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_45__.FronteggApiError),
29069
+ /* harmony export */ FronteggContext: () => (/* reexport safe */ _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.FronteggContext),
28854
29070
  /* harmony export */ FronteggFrameworks: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.FronteggFrameworks),
28855
29071
  /* harmony export */ GENERIC_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.GENERIC_ERROR_CODE),
28856
29072
  /* harmony export */ GENERIC_ERROR_MESSAGE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.GENERIC_ERROR_MESSAGE),
28857
29073
  /* harmony export */ GetUsersFilterPreset: () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_14__.GetUsersFilterPreset),
28858
29074
  /* harmony export */ GroupManagedByEnum: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupManagedByEnum),
28859
29075
  /* harmony export */ GroupRelations: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupRelations),
28860
- /* harmony export */ ISubscriptionCancellationPolicy: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ISubscriptionCancellationPolicy),
28861
- /* harmony export */ ISubscriptionStatus: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ISubscriptionStatus),
29076
+ /* harmony export */ ISubscriptionCancellationPolicy: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionCancellationPolicy),
29077
+ /* harmony export */ ISubscriptionStatus: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionStatus),
28862
29078
  /* harmony export */ InsightCode: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.InsightCode),
28863
29079
  /* harmony export */ LOAD_AUTHORIZATION_FF: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.LOAD_AUTHORIZATION_FF),
28864
29080
  /* harmony export */ MFAStrategyEnum: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.MFAStrategyEnum),
28865
29081
  /* harmony export */ MachineToMachineAuthStrategy: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.MachineToMachineAuthStrategy),
28866
29082
  /* harmony export */ NotEntitledJustification: () => (/* reexport safe */ _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_15__.NotEntitledJustification),
28867
29083
  /* harmony export */ PaginationOrderEnum: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.PaginationOrderEnum),
28868
- /* harmony export */ PaymentMethodType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_45__.PaymentMethodType),
29084
+ /* harmony export */ PaymentMethodType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.PaymentMethodType),
28869
29085
  /* harmony export */ PermissionAssignmentTypeEnum: () => (/* reexport safe */ _roles_interfaces__WEBPACK_IMPORTED_MODULE_7__.PermissionAssignmentTypeEnum),
28870
- /* harmony export */ ProviderType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ProviderType),
29086
+ /* harmony export */ ProviderType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ProviderType),
28871
29087
  /* harmony export */ RecommendationActionKey: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationActionKey),
28872
29088
  /* harmony export */ RecommendationCode: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationCode),
28873
29089
  /* harmony export */ RecommendationSeverity: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationSeverity),
@@ -28887,7 +29103,7 @@ __webpack_require__.r(__webpack_exports__);
28887
29103
  /* harmony export */ api: () => (/* binding */ api),
28888
29104
  /* harmony export */ createApiClient: () => (/* binding */ createApiClient),
28889
29105
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
28890
- /* harmony export */ fetch: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_42__["default"]),
29106
+ /* harmony export */ fetch: () => (/* reexport safe */ _FetchClient__WEBPACK_IMPORTED_MODULE_43__["default"]),
28891
29107
  /* harmony export */ fronteggAuthApiRoutesRegex: () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_9__.fronteggAuthApiRoutesRegex),
28892
29108
  /* harmony export */ fronteggEntitlementsV2Url: () => (/* reexport safe */ _routers__WEBPACK_IMPORTED_MODULE_9__.fronteggEntitlementsV2Url),
28893
29109
  /* harmony export */ fronteggHeaders: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.fronteggHeaders),
@@ -28903,10 +29119,10 @@ __webpack_require__.r(__webpack_exports__);
28903
29119
  /* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantInSessionStorage)
28904
29120
  /* harmony export */ });
28905
29121
  /* harmony import */ var _auth_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth/enums */ "../../dist/@frontegg/rest-api/auth/enums.js");
28906
- /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./subscriptions */ "../../dist/@frontegg/rest-api/subscriptions/enums.js");
28907
- /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./error */ "../../dist/@frontegg/rest-api/error.js");
28908
- /* harmony import */ var _FetchClient__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./FetchClient */ "../../dist/@frontegg/rest-api/FetchClient.js");
28909
- /* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
29122
+ /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./subscriptions */ "../../dist/@frontegg/rest-api/subscriptions/enums.js");
29123
+ /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./error */ "../../dist/@frontegg/rest-api/error.js");
29124
+ /* harmony import */ var _FetchClient__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./FetchClient */ "../../dist/@frontegg/rest-api/FetchClient.js");
29125
+ /* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
28910
29126
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./auth */ "../../dist/@frontegg/rest-api/auth/index.js");
28911
29127
  /* 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
29128
  /* harmony import */ var _users__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./users */ "../../dist/@frontegg/rest-api/users/index.js");
@@ -28931,7 +29147,8 @@ __webpack_require__.r(__webpack_exports__);
28931
29147
  /* 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
29148
  /* harmony import */ var _applications__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./applications */ "../../dist/@frontegg/rest-api/applications/index.js");
28933
29149
  /* harmony import */ var _velo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./velo */ "../../dist/@frontegg/rest-api/velo/index.js");
28934
- /* harmony import */ var _users_emails_policy__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./users-emails-policy */ "../../dist/@frontegg/rest-api/users-emails-policy/index.js");
29150
+ /* harmony import */ var _usernames__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./usernames */ "../../dist/@frontegg/rest-api/usernames/index.js");
29151
+ /* 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
29152
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/rest-api/interfaces.js");
28936
29153
  /* harmony import */ var _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth/interfaces */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
28937
29154
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth */ "../../dist/@frontegg/rest-api/auth/utils.js");
@@ -28948,7 +29165,7 @@ __webpack_require__.r(__webpack_exports__);
28948
29165
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
28949
29166
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
28950
29167
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
28951
- /** @license Frontegg v7.75.0
29168
+ /** @license Frontegg v7.76.0-alpha.0
28952
29169
  *
28953
29170
  * This source code is licensed under the MIT license found in the
28954
29171
  * LICENSE file in the root directory of this source tree.
@@ -29013,6 +29230,7 @@ __webpack_require__.r(__webpack_exports__);
29013
29230
 
29014
29231
 
29015
29232
 
29233
+
29016
29234
 
29017
29235
 
29018
29236
  /**
@@ -29045,7 +29263,8 @@ const api = {
29045
29263
  userPhoneNumbers: _user_phone_numbers__WEBPACK_IMPORTED_MODULE_38__["default"],
29046
29264
  applications: _applications__WEBPACK_IMPORTED_MODULE_39__["default"],
29047
29265
  velo: _velo__WEBPACK_IMPORTED_MODULE_40__["default"],
29048
- userEmailPolicy: _users_emails_policy__WEBPACK_IMPORTED_MODULE_41__["default"]
29266
+ usernames: _usernames__WEBPACK_IMPORTED_MODULE_41__["default"],
29267
+ userEmailPolicy: _users_emails_policy__WEBPACK_IMPORTED_MODULE_42__["default"]
29049
29268
  };
29050
29269
  const createApiClient = appName => ({
29051
29270
  auth: new _auth__WEBPACK_IMPORTED_MODULE_19__.AuthenticationApi(appName),
@@ -29072,24 +29291,25 @@ const createApiClient = appName => ({
29072
29291
  userPhoneNumbers: new _user_phone_numbers__WEBPACK_IMPORTED_MODULE_38__.PhoneNumbersApi(appName),
29073
29292
  applications: new _applications__WEBPACK_IMPORTED_MODULE_39__.ApplicationsApi(appName),
29074
29293
  velo: new _velo__WEBPACK_IMPORTED_MODULE_40__.VeloApi(appName),
29075
- userEmailPolicy: new _users_emails_policy__WEBPACK_IMPORTED_MODULE_41__.UserEmailPolicyApi(appName)
29294
+ usernames: new _usernames__WEBPACK_IMPORTED_MODULE_41__.UsernamesApi(appName),
29295
+ userEmailPolicy: new _users_emails_policy__WEBPACK_IMPORTED_MODULE_42__.UserEmailPolicyApi(appName)
29076
29296
  });
29077
29297
 
29078
29298
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
29079
- fetch: _FetchClient__WEBPACK_IMPORTED_MODULE_42__["default"],
29080
- FetchClient: _FetchClient__WEBPACK_IMPORTED_MODULE_42__.FetchClient,
29081
- ContextHolder: _ContextHolder__WEBPACK_IMPORTED_MODULE_43__.ContextHolder,
29082
- FronteggContext: _ContextHolder__WEBPACK_IMPORTED_MODULE_43__.FronteggContext,
29299
+ fetch: _FetchClient__WEBPACK_IMPORTED_MODULE_43__["default"],
29300
+ FetchClient: _FetchClient__WEBPACK_IMPORTED_MODULE_43__.FetchClient,
29301
+ ContextHolder: _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.ContextHolder,
29302
+ FronteggContext: _ContextHolder__WEBPACK_IMPORTED_MODULE_44__.FronteggContext,
29083
29303
  api,
29084
29304
  createApiClient,
29085
- FronteggApiError: _error__WEBPACK_IMPORTED_MODULE_44__.FronteggApiError,
29305
+ FronteggApiError: _error__WEBPACK_IMPORTED_MODULE_45__.FronteggApiError,
29086
29306
  AuthStrategyEnum: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.AuthStrategyEnum,
29087
29307
  MachineToMachineAuthStrategy: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.MachineToMachineAuthStrategy,
29088
29308
  SocialLoginProviders: _auth_enums__WEBPACK_IMPORTED_MODULE_2__.SocialLoginProviders,
29089
- ISubscriptionCancellationPolicy: _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ISubscriptionCancellationPolicy,
29090
- ISubscriptionStatus: _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ISubscriptionStatus,
29091
- PaymentMethodType: _subscriptions__WEBPACK_IMPORTED_MODULE_45__.PaymentMethodType,
29092
- ProviderType: _subscriptions__WEBPACK_IMPORTED_MODULE_45__.ProviderType
29309
+ ISubscriptionCancellationPolicy: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionCancellationPolicy,
29310
+ ISubscriptionStatus: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ISubscriptionStatus,
29311
+ PaymentMethodType: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.PaymentMethodType,
29312
+ ProviderType: _subscriptions__WEBPACK_IMPORTED_MODULE_46__.ProviderType
29093
29313
  });
29094
29314
 
29095
29315
  /***/ }),
@@ -30660,6 +30880,45 @@ class PhoneNumbersApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.BaseAp
30660
30880
 
30661
30881
  /***/ }),
30662
30882
 
30883
+ /***/ "../../dist/@frontegg/rest-api/usernames/index.js":
30884
+ /*!********************************************************!*\
30885
+ !*** ../../dist/@frontegg/rest-api/usernames/index.js ***!
30886
+ \********************************************************/
30887
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
30888
+
30889
+ "use strict";
30890
+ __webpack_require__.r(__webpack_exports__);
30891
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
30892
+ /* harmony export */ UsernamesApi: () => (/* binding */ UsernamesApi),
30893
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
30894
+ /* harmony export */ });
30895
+ /* harmony import */ var _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../BaseApiClient */ "../../dist/@frontegg/rest-api/BaseApiClient.js");
30896
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "../../dist/@frontegg/rest-api/constants.js");
30897
+
30898
+
30899
+ class UsernamesApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.BaseApiClient {
30900
+ constructor(appName) {
30901
+ super(appName);
30902
+ this.getUserOwnUsername = async () => {
30903
+ return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}/me`);
30904
+ };
30905
+ this.createUsername = async body => {
30906
+ return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}`, body);
30907
+ };
30908
+ this.deleteUsername = async username => {
30909
+ return this.delete(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.usernames.v1}/${username}`);
30910
+ };
30911
+ }
30912
+
30913
+ /**
30914
+ * Get own username of user
30915
+ */
30916
+ }
30917
+
30918
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new UsernamesApi('default'));
30919
+
30920
+ /***/ }),
30921
+
30663
30922
  /***/ "../../dist/@frontegg/rest-api/users-emails-policy/index.js":
30664
30923
  /*!******************************************************************!*\
30665
30924
  !*** ../../dist/@frontegg/rest-api/users-emails-policy/index.js ***!
@@ -31495,6 +31754,7 @@ __webpack_require__.r(__webpack_exports__);
31495
31754
  let ProfilePageFields;
31496
31755
  (function (ProfilePageFields) {
31497
31756
  ProfilePageFields["Name"] = "name";
31757
+ ProfilePageFields["Username"] = "username";
31498
31758
  ProfilePageFields["PhoneNumber"] = "phoneNumber";
31499
31759
  ProfilePageFields["Address"] = "address";
31500
31760
  ProfilePageFields["JobTitle"] = "jobTitle";
@@ -31641,7 +31901,7 @@ __webpack_require__.r(__webpack_exports__);
31641
31901
  /* harmony export */ });
31642
31902
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
31643
31903
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
31644
- /** @license Frontegg v7.75.0
31904
+ /** @license Frontegg v7.76.0-alpha.0
31645
31905
  *
31646
31906
  * This source code is licensed under the MIT license found in the
31647
31907
  * LICENSE file in the root directory of this source tree.