@frontegg/js 6.74.0 → 6.75.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.74.0
1
+ /** @license Frontegg v6.75.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.74.0
1
+ /** @license Frontegg v6.75.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- "cdnVersion": "6.74.0"
8
+ "cdnVersion": "6.75.0-alpha.0"
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.74.0",
3
+ "version": "6.75.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "@babel/runtime": "^7.18.6",
8
- "@frontegg/types": "6.74.0"
8
+ "@frontegg/types": "6.75.0-alpha.0"
9
9
  },
10
10
  "browserslist": {
11
11
  "production": [
@@ -1173,7 +1173,7 @@ __webpack_require__.r(__webpack_exports__);
1173
1173
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1174
1174
  /* harmony export */ });
1175
1175
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1176
- "cdnVersion": "6.74.0"
1176
+ "cdnVersion": "6.75.0-alpha.0"
1177
1177
  });
1178
1178
 
1179
1179
  /***/ }),
@@ -4030,7 +4030,8 @@ __webpack_require__.r(__webpack_exports__);
4030
4030
  /* harmony export */ "loginSagas": () => (/* binding */ loginSagas),
4031
4031
  /* harmony export */ "loginSagasMock": () => (/* binding */ loginSagasMock),
4032
4032
  /* harmony export */ "refreshMetadata": () => (/* binding */ refreshMetadata),
4033
- /* harmony export */ "refreshToken": () => (/* binding */ refreshToken)
4033
+ /* harmony export */ "refreshToken": () => (/* binding */ refreshToken),
4034
+ /* harmony export */ "refreshTokenForSocialLogins": () => (/* binding */ refreshTokenForSocialLogins)
4034
4035
  /* harmony export */ });
4035
4036
  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
4036
4037
  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
@@ -4256,6 +4257,15 @@ function* getMfaRequiredState(user) {
4256
4257
  })
4257
4258
  };
4258
4259
  }
4260
+ function* shouldNevigateToRegisterQuickLogin(user) {
4261
+ var _ref;
4262
+ const {
4263
+ routes,
4264
+ loginState
4265
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
4266
+ const quickLoginToRegister = (_ref = localStorage.getItem('register-quick-login')) != null ? _ref : loginState.quickLoginToRegister;
4267
+ return quickLoginToRegister && localStorage.getItem(`${user.id}-${quickLoginToRegister}`) !== 'true' && !window.location.pathname.endsWith(routes.logoutUrl);
4268
+ }
4259
4269
  function* refreshToken() {
4260
4270
  const {
4261
4271
  hostedLoginBox
@@ -4266,6 +4276,16 @@ function* refreshToken() {
4266
4276
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshTokenEmbedded);
4267
4277
  }
4268
4278
  }
4279
+ function* refreshTokenForSocialLogins() {
4280
+ const {
4281
+ hostedLoginBox
4282
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
4283
+ if (hostedLoginBox) {
4284
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshTokenHostedSocialLogins);
4285
+ } else {
4286
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(refreshTokenEmbeddedSocialLogins);
4287
+ }
4288
+ }
4269
4289
  function* refreshTokenHosted() {
4270
4290
  const {
4271
4291
  user
@@ -4299,6 +4319,39 @@ function* refreshTokenHosted() {
4299
4319
  }));
4300
4320
  }
4301
4321
  }
4322
+ function* refreshTokenHostedSocialLogins() {
4323
+ const {
4324
+ user
4325
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
4326
+ if (!(user != null && user.refreshToken)) {
4327
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setAccessToken(null);
4328
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setUser(null);
4329
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4330
+ user: null,
4331
+ isAuthenticated: false
4332
+ }));
4333
+ return;
4334
+ }
4335
+ try {
4336
+ const body = {
4337
+ grant_type: 'refresh_token',
4338
+ refresh_token: user == null ? void 0 : user.refreshToken
4339
+ };
4340
+ const authenticatedUser = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.api.auth.exchangeOAuthTokens, body);
4341
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4342
+ user: authenticatedUser,
4343
+ isAuthenticated: true
4344
+ }));
4345
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.loadTenants());
4346
+ } catch (e) {
4347
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setAccessToken(null);
4348
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setUser(null);
4349
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4350
+ user: null,
4351
+ isAuthenticated: false
4352
+ }));
4353
+ }
4354
+ }
4302
4355
  function* refreshTokenEmbedded() {
4303
4356
  try {
4304
4357
  const onRedirectTo = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.onRedirectTo;
@@ -4317,12 +4370,12 @@ function* refreshTokenEmbedded() {
4317
4370
  preserveQueryParams: true
4318
4371
  });
4319
4372
  } else {
4320
- var _ref, _window2;
4373
+ var _ref2;
4321
4374
  if (user.id) {
4322
4375
  localStorage.setItem('userId', user.id);
4323
4376
  }
4324
- const quickLoginToRegister = (_ref = localStorage.getItem('register-quick-login')) != null ? _ref : loginState.quickLoginToRegister;
4325
- const shouldNavigateToRegisterQuickLogin = quickLoginToRegister && localStorage.getItem(`${user.id}-${quickLoginToRegister}`) !== 'true' && !window.location.pathname.endsWith(routes.logoutUrl);
4377
+ const quickLoginToRegister = (_ref2 = localStorage.getItem('register-quick-login')) != null ? _ref2 : loginState.quickLoginToRegister;
4378
+ const shouldNavigateToRegisterQuickLogin = yield shouldNevigateToRegisterQuickLogin(user);
4326
4379
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setTenantsState({
4327
4380
  tenants,
4328
4381
  loading: false
@@ -4335,23 +4388,54 @@ function* refreshTokenEmbedded() {
4335
4388
  flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
4336
4389
  })
4337
4390
  }));
4338
- const url = new URL((_window2 = window) == null ? void 0 : _window2.location.href);
4339
- const invitationToken = url.searchParams.get('invitationToken');
4340
- const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl];
4341
- if (!invitationToken) {
4342
- redirectRoutes.push(routes.loginUrl, routes.signUpUrl);
4343
- }
4344
- if (shouldNavigateToRegisterQuickLogin) {
4345
- onRedirectTo(routes.loginUrl);
4346
- } else if (redirectRoutes.some(url => url && window.location.pathname.endsWith(url))) {
4347
- if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
4348
- onRedirectTo(routes.signUpSuccessUrl, {
4349
- refresh: routes.signUpSuccessUrl.startsWith('http')
4350
- });
4351
- } else {
4352
- yield afterAuthNavigation();
4353
- }
4391
+ yield handleRedirectRefreshToken(shouldNavigateToRegisterQuickLogin);
4392
+ }
4393
+ } catch (e) {
4394
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setAccessToken(null);
4395
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setUser(null);
4396
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4397
+ user: undefined,
4398
+ isAuthenticated: false
4399
+ }));
4400
+ }
4401
+ }
4402
+ function* refreshTokenEmbeddedSocialLogins() {
4403
+ try {
4404
+ const onRedirectTo = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.onRedirectTo;
4405
+ const {
4406
+ routes,
4407
+ loginState
4408
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
4409
+ const {
4410
+ user,
4411
+ tenants
4412
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.api.auth.refreshTokenV2);
4413
+ if (isMfaRequired(user)) {
4414
+ const mfaRequiredState = yield getMfaRequiredState(user);
4415
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState(mfaRequiredState));
4416
+ onRedirectTo(routes.loginUrl, {
4417
+ preserveQueryParams: true
4418
+ });
4419
+ } else {
4420
+ var _ref3;
4421
+ if (user.id) {
4422
+ localStorage.setItem('userId', user.id);
4354
4423
  }
4424
+ const quickLoginToRegister = (_ref3 = localStorage.getItem('register-quick-login')) != null ? _ref3 : loginState.quickLoginToRegister;
4425
+ const shouldNavigateToRegisterQuickLogin = yield shouldNevigateToRegisterQuickLogin(user);
4426
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setTenantsState({
4427
+ tenants,
4428
+ loading: false
4429
+ }));
4430
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setState({
4431
+ user,
4432
+ isAuthenticated: true,
4433
+ loginState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, loginState, {
4434
+ quickLoginToRegister,
4435
+ flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
4436
+ })
4437
+ }));
4438
+ yield handleRedirectRefreshToken(shouldNavigateToRegisterQuickLogin);
4355
4439
  }
4356
4440
  } catch (e) {
4357
4441
  _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.setAccessToken(null);
@@ -4362,6 +4446,31 @@ function* refreshTokenEmbedded() {
4362
4446
  }));
4363
4447
  }
4364
4448
  }
4449
+ function* handleRedirectRefreshToken(shouldNavigateToRegisterQuickLogin) {
4450
+ var _window2;
4451
+ const url = new URL((_window2 = window) == null ? void 0 : _window2.location.href);
4452
+ const onRedirectTo = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.onRedirectTo;
4453
+ const {
4454
+ routes,
4455
+ loginState
4456
+ } = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => state.auth);
4457
+ const invitationToken = url.searchParams.get('invitationToken');
4458
+ const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl];
4459
+ if (!invitationToken) {
4460
+ redirectRoutes.push(routes.loginUrl, routes.signUpUrl);
4461
+ }
4462
+ if (shouldNavigateToRegisterQuickLogin) {
4463
+ onRedirectTo(routes.loginUrl);
4464
+ } else if (redirectRoutes.some(url => url && window.location.pathname.endsWith(url))) {
4465
+ if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
4466
+ onRedirectTo(routes.signUpSuccessUrl, {
4467
+ refresh: routes.signUpSuccessUrl.startsWith('http')
4468
+ });
4469
+ } else {
4470
+ yield afterAuthNavigation();
4471
+ }
4472
+ }
4473
+ }
4365
4474
  function* getUserIP({
4366
4475
  payload: {
4367
4476
  callback
@@ -4561,13 +4670,13 @@ function* handleHostedLoginCallback({
4561
4670
  yield afterAuthNavigation();
4562
4671
  }
4563
4672
  }
4564
- function* changePhoneNumberWithVerification(_ref2) {
4673
+ function* changePhoneNumberWithVerification(_ref4) {
4565
4674
  let {
4566
4675
  payload: {
4567
4676
  callback
4568
4677
  }
4569
- } = _ref2,
4570
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref2.payload, _excluded);
4678
+ } = _ref4,
4679
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref4.payload, _excluded);
4571
4680
  try {
4572
4681
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
4573
4682
  loading: true
@@ -4588,13 +4697,13 @@ function* changePhoneNumberWithVerification(_ref2) {
4588
4697
  }));
4589
4698
  }
4590
4699
  }
4591
- function* verifyChangePhoneNumber(_ref3) {
4700
+ function* verifyChangePhoneNumber(_ref5) {
4592
4701
  let {
4593
4702
  payload: {
4594
4703
  callback
4595
4704
  }
4596
- } = _ref3,
4597
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref3.payload, _excluded2);
4705
+ } = _ref5,
4706
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref5.payload, _excluded2);
4598
4707
  try {
4599
4708
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
4600
4709
  loading: true
@@ -4611,13 +4720,13 @@ function* verifyChangePhoneNumber(_ref3) {
4611
4720
  }));
4612
4721
  }
4613
4722
  }
4614
- function* quickSmsPasswordlessPreLogin(_ref4) {
4723
+ function* quickSmsPasswordlessPreLogin(_ref6) {
4615
4724
  let {
4616
4725
  payload: {
4617
4726
  callback
4618
4727
  }
4619
- } = _ref4,
4620
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref4.payload, _excluded3);
4728
+ } = _ref6,
4729
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref6.payload, _excluded3);
4621
4730
  try {
4622
4731
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
4623
4732
  loading: true
@@ -4643,13 +4752,13 @@ function* quickSmsPasswordlessPreLogin(_ref4) {
4643
4752
  callback == null ? void 0 : callback(e);
4644
4753
  }
4645
4754
  }
4646
- function* passwordlessPreLogin(_ref5) {
4755
+ function* passwordlessPreLogin(_ref7) {
4647
4756
  let {
4648
4757
  payload: {
4649
4758
  callback
4650
4759
  }
4651
- } = _ref5,
4652
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref5.payload, _excluded4);
4760
+ } = _ref7,
4761
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref7.payload, _excluded4);
4653
4762
  try {
4654
4763
  const {
4655
4764
  onRedirectTo,
@@ -4695,14 +4804,14 @@ function* passwordlessPreLogin(_ref5) {
4695
4804
  callback == null ? void 0 : callback();
4696
4805
  }
4697
4806
  }
4698
- function* passwordlessPostLogin(_ref6) {
4807
+ function* passwordlessPostLogin(_ref8) {
4699
4808
  let {
4700
4809
  payload: {
4701
4810
  callback,
4702
4811
  events
4703
4812
  }
4704
- } = _ref6,
4705
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref6.payload, _excluded5);
4813
+ } = _ref8,
4814
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref8.payload, _excluded5);
4706
4815
  try {
4707
4816
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
4708
4817
  loading: true
@@ -4856,11 +4965,11 @@ function* preLogin({
4856
4965
  });
4857
4966
  }
4858
4967
  }
4859
- function* ssoPreloginFailed(_ref7) {
4968
+ function* ssoPreloginFailed(_ref9) {
4860
4969
  let {
4861
4970
  callback
4862
- } = _ref7,
4863
- body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref7, _excluded6);
4971
+ } = _ref9,
4972
+ body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref9, _excluded6);
4864
4973
  const publicPolicy = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(({
4865
4974
  auth: {
4866
4975
  securityPolicyState: {
@@ -4924,13 +5033,13 @@ function* webAuthnCreateNewDeviceSession({
4924
5033
  }));
4925
5034
  }
4926
5035
  }
4927
- function* webAuthnVerifyNewDeviceSession(_ref8) {
5036
+ function* webAuthnVerifyNewDeviceSession(_ref10) {
4928
5037
  let {
4929
5038
  payload: {
4930
5039
  callback
4931
5040
  }
4932
- } = _ref8,
4933
- body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref8.payload, _excluded7);
5041
+ } = _ref10,
5042
+ body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref10.payload, _excluded7);
4934
5043
  try {
4935
5044
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
4936
5045
  loading: true
@@ -4952,13 +5061,13 @@ function* webAuthnVerifyNewDeviceSession(_ref8) {
4952
5061
  }));
4953
5062
  }
4954
5063
  }
4955
- function* webAuthnPrelogin(_ref9) {
5064
+ function* webAuthnPrelogin(_ref11) {
4956
5065
  let {
4957
5066
  payload: {
4958
5067
  callback
4959
5068
  }
4960
- } = _ref9,
4961
- body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref9.payload, _excluded8);
5069
+ } = _ref11,
5070
+ body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref11.payload, _excluded8);
4962
5071
  try {
4963
5072
  var _options$allowCredent;
4964
5073
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
@@ -4986,13 +5095,13 @@ function* webAuthnPrelogin(_ref9) {
4986
5095
  }));
4987
5096
  }
4988
5097
  }
4989
- function* webAuthnPostLogin(_ref10) {
5098
+ function* webAuthnPostLogin(_ref12) {
4990
5099
  let {
4991
5100
  payload: {
4992
5101
  callback
4993
5102
  }
4994
- } = _ref10,
4995
- body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref10.payload, _excluded9);
5103
+ } = _ref12,
5104
+ body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref12.payload, _excluded9);
4996
5105
  try {
4997
5106
  var _publicKey$response$u;
4998
5107
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
@@ -5310,13 +5419,13 @@ function* handleVerifyMFAResponse({
5310
5419
  isAuthenticated: true
5311
5420
  }));
5312
5421
  }
5313
- function* preEnrollMFASMSForLogin(_ref11) {
5422
+ function* preEnrollMFASMSForLogin(_ref13) {
5314
5423
  let {
5315
5424
  payload: {
5316
5425
  callback
5317
5426
  }
5318
- } = _ref11,
5319
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref11.payload, _excluded10);
5427
+ } = _ref13,
5428
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref13.payload, _excluded10);
5320
5429
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5321
5430
  loading: true
5322
5431
  }));
@@ -5339,13 +5448,13 @@ function* preEnrollMFASMSForLogin(_ref11) {
5339
5448
  callback == null ? void 0 : callback(null);
5340
5449
  }
5341
5450
  }
5342
- function* enrollMFASMSForLogin(_ref12) {
5451
+ function* enrollMFASMSForLogin(_ref14) {
5343
5452
  let {
5344
5453
  payload: {
5345
5454
  callback
5346
5455
  }
5347
- } = _ref12,
5348
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref12.payload, _excluded11);
5456
+ } = _ref14,
5457
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref14.payload, _excluded11);
5349
5458
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5350
5459
  loading: true
5351
5460
  }));
@@ -5365,13 +5474,13 @@ function* enrollMFASMSForLogin(_ref12) {
5365
5474
  callback == null ? void 0 : callback(null);
5366
5475
  }
5367
5476
  }
5368
- function* preEnrollMFAWebAuthnForLogin(_ref13) {
5477
+ function* preEnrollMFAWebAuthnForLogin(_ref15) {
5369
5478
  let {
5370
5479
  payload: {
5371
5480
  callback
5372
5481
  }
5373
- } = _ref13,
5374
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref13.payload, _excluded12);
5482
+ } = _ref15,
5483
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref15.payload, _excluded12);
5375
5484
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5376
5485
  loading: true
5377
5486
  }));
@@ -5402,13 +5511,13 @@ function* preEnrollMFAWebAuthnForLogin(_ref13) {
5402
5511
  callback == null ? void 0 : callback(null);
5403
5512
  }
5404
5513
  }
5405
- function* enrollMFAWebAuthnForLogin(_ref14) {
5514
+ function* enrollMFAWebAuthnForLogin(_ref16) {
5406
5515
  let {
5407
5516
  payload: {
5408
5517
  callback
5409
5518
  }
5410
- } = _ref14,
5411
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref14.payload, _excluded13);
5519
+ } = _ref16,
5520
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref16.payload, _excluded13);
5412
5521
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5413
5522
  loading: true
5414
5523
  }));
@@ -5431,13 +5540,13 @@ function* enrollMFAWebAuthnForLogin(_ref14) {
5431
5540
  callback == null ? void 0 : callback(null);
5432
5541
  }
5433
5542
  }
5434
- function* enrollMFAAuthenticatorAppForLogin(_ref15) {
5543
+ function* enrollMFAAuthenticatorAppForLogin(_ref17) {
5435
5544
  let {
5436
5545
  payload: {
5437
5546
  callback
5438
5547
  }
5439
- } = _ref15,
5440
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref15.payload, _excluded14);
5548
+ } = _ref17,
5549
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref17.payload, _excluded14);
5441
5550
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5442
5551
  loading: true
5443
5552
  }));
@@ -5457,14 +5566,14 @@ function* enrollMFAAuthenticatorAppForLogin(_ref15) {
5457
5566
  callback == null ? void 0 : callback(null);
5458
5567
  }
5459
5568
  }
5460
- function* preVerifyMFASMSForLogin(_ref16) {
5569
+ function* preVerifyMFASMSForLogin(_ref18) {
5461
5570
  let {
5462
5571
  payload: {
5463
5572
  callback,
5464
5573
  deviceId
5465
5574
  }
5466
- } = _ref16,
5467
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref16.payload, _excluded15);
5575
+ } = _ref18,
5576
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref18.payload, _excluded15);
5468
5577
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5469
5578
  loading: true
5470
5579
  }));
@@ -5487,14 +5596,14 @@ function* preVerifyMFASMSForLogin(_ref16) {
5487
5596
  callback == null ? void 0 : callback(null);
5488
5597
  }
5489
5598
  }
5490
- function* verifyMFASMSForLogin(_ref17) {
5599
+ function* verifyMFASMSForLogin(_ref19) {
5491
5600
  let {
5492
5601
  payload: {
5493
5602
  callback,
5494
5603
  deviceId
5495
5604
  }
5496
- } = _ref17,
5497
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref17.payload, _excluded16);
5605
+ } = _ref19,
5606
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref19.payload, _excluded16);
5498
5607
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5499
5608
  loading: true
5500
5609
  }));
@@ -5514,14 +5623,14 @@ function* verifyMFASMSForLogin(_ref17) {
5514
5623
  callback == null ? void 0 : callback(null);
5515
5624
  }
5516
5625
  }
5517
- function* preVerifyMFAWebAuthnForLogin(_ref18) {
5626
+ function* preVerifyMFAWebAuthnForLogin(_ref20) {
5518
5627
  let {
5519
5628
  payload: {
5520
5629
  callback,
5521
5630
  deviceId
5522
5631
  }
5523
- } = _ref18,
5524
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref18.payload, _excluded17);
5632
+ } = _ref20,
5633
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref20.payload, _excluded17);
5525
5634
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5526
5635
  loading: true
5527
5636
  }));
@@ -5549,14 +5658,14 @@ function* preVerifyMFAWebAuthnForLogin(_ref18) {
5549
5658
  callback == null ? void 0 : callback(null);
5550
5659
  }
5551
5660
  }
5552
- function* verifyMFAWebAuthnForLogin(_ref19) {
5661
+ function* verifyMFAWebAuthnForLogin(_ref21) {
5553
5662
  let {
5554
5663
  payload: {
5555
5664
  callback,
5556
5665
  deviceId
5557
5666
  }
5558
- } = _ref19,
5559
- payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref19.payload, _excluded18);
5667
+ } = _ref21,
5668
+ payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref21.payload, _excluded18);
5560
5669
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_7__.actions.setLoginState({
5561
5670
  loading: true
5562
5671
  }));
@@ -10828,7 +10937,7 @@ function* loginViaSocialLogin(_ref2) {
10828
10937
  email,
10829
10938
  isNewUser
10830
10939
  }));
10831
- yield (0,_LoginState_saga__WEBPACK_IMPORTED_MODULE_7__.refreshToken)();
10940
+ yield (0,_LoginState_saga__WEBPACK_IMPORTED_MODULE_7__.refreshTokenForSocialLogins)();
10832
10941
  localStorage.removeItem('register-quick-login');
10833
10942
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_3__.actions.setSocialLoginsState({
10834
10943
  loading: false
@@ -17313,7 +17422,7 @@ __webpack_require__.r(__webpack_exports__);
17313
17422
  /* harmony export */ });
17314
17423
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
17315
17424
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
17316
- /** @license Frontegg v6.74.0
17425
+ /** @license Frontegg v6.75.0-alpha.0
17317
17426
  *
17318
17427
  * This source code is licensed under the MIT license found in the
17319
17428
  * LICENSE file in the root directory of this source tree.
@@ -18690,12 +18799,8 @@ const urls = {
18690
18799
  v1: '/identity/resources/groups/v1/config'
18691
18800
  },
18692
18801
  v1: '/identity/resources/groups/v1',
18693
- roles: {
18694
- v1: '/identity/resources/groups/v1/roles'
18695
- },
18696
- users: {
18697
- v1: '/identity/resources/groups/v1/users'
18698
- }
18802
+ roles: '/roles',
18803
+ users: '/users'
18699
18804
  }
18700
18805
  },
18701
18806
  team: {
@@ -19241,7 +19346,7 @@ __webpack_require__.r(__webpack_exports__);
19241
19346
  /* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
19242
19347
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
19243
19348
  /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
19244
- /** @license Frontegg v3.0.77
19349
+ /** @license Frontegg v3.0.82
19245
19350
  *
19246
19351
  * This source code is licensed under the MIT license found in the
19247
19352
  * LICENSE file in the root directory of this source tree.