@auth0/auth0-server-js 1.13.0 → 1.15.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/dist/index.cjs CHANGED
@@ -23,38 +23,40 @@ __export(index_exports, {
23
23
  AbstractStateStore: () => AbstractStateStore,
24
24
  AbstractTransactionStore: () => AbstractTransactionStore,
25
25
  BackchannelLogoutError: () => BackchannelLogoutError,
26
- ChangePasswordError: () => import_auth0_auth_js4.ChangePasswordError,
26
+ ChangePasswordError: () => import_auth0_auth_js5.ChangePasswordError,
27
27
  CookieTransactionStore: () => CookieTransactionStore,
28
+ EnterpriseConnectNotSupportedError: () => import_auth0_auth_js6.EnterpriseConnectNotSupportedError,
28
29
  InvalidConfigurationError: () => InvalidConfigurationError,
29
30
  IssuerValidationError: () => IssuerValidationError,
30
- MfaChallengeError: () => import_auth0_auth_js2.MfaChallengeError,
31
- MfaEnrollmentError: () => import_auth0_auth_js2.MfaEnrollmentError,
32
- MfaListAuthenticatorsError: () => import_auth0_auth_js2.MfaListAuthenticatorsError,
33
- MfaVerifyError: () => import_auth0_auth_js2.MfaVerifyError,
34
- MissingClientAuthError: () => import_auth0_auth_js5.MissingClientAuthError,
31
+ MfaChallengeError: () => import_auth0_auth_js3.MfaChallengeError,
32
+ MfaEnrollmentError: () => import_auth0_auth_js3.MfaEnrollmentError,
33
+ MfaListAuthenticatorsError: () => import_auth0_auth_js3.MfaListAuthenticatorsError,
34
+ MfaVerifyError: () => import_auth0_auth_js3.MfaVerifyError,
35
+ MissingClientAuthError: () => import_auth0_auth_js6.MissingClientAuthError,
35
36
  MissingRequiredArgumentError: () => MissingRequiredArgumentError,
36
37
  MissingSessionError: () => MissingSessionError,
37
38
  MissingTransactionError: () => MissingTransactionError,
38
- OrganizationValidationError: () => import_auth0_auth_js5.OrganizationValidationError,
39
- PasskeyChallengeError: () => import_auth0_auth_js3.PasskeyChallengeError,
40
- PasskeyGetTokenError: () => import_auth0_auth_js3.PasskeyGetTokenError,
41
- PasskeyRegisterError: () => import_auth0_auth_js3.PasskeyRegisterError,
42
- PasswordlessStartError: () => import_auth0_auth_js5.PasswordlessStartError,
43
- PasswordlessVerifyError: () => import_auth0_auth_js5.PasswordlessVerifyError,
39
+ OrganizationValidationError: () => import_auth0_auth_js6.OrganizationValidationError,
40
+ PasskeyChallengeError: () => import_auth0_auth_js4.PasskeyChallengeError,
41
+ PasskeyGetTokenError: () => import_auth0_auth_js4.PasskeyGetTokenError,
42
+ PasskeyRegisterError: () => import_auth0_auth_js4.PasskeyRegisterError,
43
+ PasswordlessStartError: () => import_auth0_auth_js6.PasswordlessStartError,
44
+ PasswordlessVerifyError: () => import_auth0_auth_js6.PasswordlessVerifyError,
44
45
  ServerClient: () => ServerClient,
45
46
  ServerDatabaseClient: () => ServerDatabaseClient,
46
47
  ServerMfaClient: () => ServerMfaClient,
47
48
  ServerPasskeyClient: () => ServerPasskeyClient,
48
49
  SessionExpiredError: () => SessionExpiredError,
49
- SignUpError: () => import_auth0_auth_js4.SignUpError,
50
+ SignUpError: () => import_auth0_auth_js5.SignUpError,
50
51
  StartLinkUserError: () => StartLinkUserError,
51
52
  StatefulStateStore: () => StatefulStateStore,
52
53
  StatelessStateStore: () => StatelessStateStore,
53
- TokenExchangeError: () => import_auth0_auth_js5.TokenExchangeError,
54
+ TokenExchangeError: () => import_auth0_auth_js6.TokenExchangeError,
54
55
  TokenExchangeErrorCode: () => TokenExchangeErrorCode,
55
- TokenRevocationError: () => import_auth0_auth_js5.TokenRevocationError,
56
- UserInfoError: () => import_auth0_auth_js5.UserInfoError,
57
- isMfaRequiredError: () => import_auth0_auth_js5.isMfaRequiredError
56
+ TokenRevocationError: () => import_auth0_auth_js6.TokenRevocationError,
57
+ UserInfoError: () => import_auth0_auth_js6.UserInfoError,
58
+ isFederatedDomain: () => import_auth0_auth_js6.isFederatedDomain,
59
+ isMfaRequiredError: () => import_auth0_auth_js6.isMfaRequiredError
58
60
  });
59
61
  module.exports = __toCommonJS(index_exports);
60
62
 
@@ -225,7 +227,7 @@ function updateStateDataForConnectionTokenSet(options, stateData, tokenEndpointR
225
227
  }
226
228
 
227
229
  // src/server-client.ts
228
- var import_auth0_auth_js = require("@auth0/auth0-auth-js");
230
+ var import_auth0_auth_js2 = require("@auth0/auth0-auth-js");
229
231
 
230
232
  // src/utils.ts
231
233
  var DEFAULT_SCOPES = "openid profile email offline_access";
@@ -263,7 +265,7 @@ function getTelemetryConfig(config) {
263
265
  return {
264
266
  enabled: true,
265
267
  name: config?.name ?? "@auth0/auth0-server-js",
266
- version: config?.version ?? "1.13.0"
268
+ version: config?.version ?? "1.15.0"
267
269
  };
268
270
  }
269
271
 
@@ -498,6 +500,47 @@ var ServerDatabaseClient = class {
498
500
  }
499
501
  };
500
502
 
503
+ // src/enterprise-connect.ts
504
+ var import_auth0_auth_js = require("@auth0/auth0-auth-js");
505
+ var EC_ALLOWED_METHODS = /* @__PURE__ */ new Set([
506
+ "startInteractiveLogin",
507
+ "startEnterpriseLogin",
508
+ "completeInteractiveLogin",
509
+ "logout",
510
+ "customTokenExchange",
511
+ "handleBackchannelLogout"
512
+ ]);
513
+ var EC_ALLOWED_GETTERS = /* @__PURE__ */ new Set(["authClient"]);
514
+ var NullStateStore = class {
515
+ async get() {
516
+ return void 0;
517
+ }
518
+ async set() {
519
+ }
520
+ async delete() {
521
+ }
522
+ async deleteByLogoutToken() {
523
+ }
524
+ };
525
+ function applyEnterpriseConnectRestrictions(instance) {
526
+ const proto = Object.getPrototypeOf(instance);
527
+ for (const [name, desc] of Object.entries(Object.getOwnPropertyDescriptors(proto))) {
528
+ if (name === "constructor") continue;
529
+ if (desc.get && !EC_ALLOWED_GETTERS.has(name)) {
530
+ Object.defineProperty(instance, name, {
531
+ get: () => {
532
+ throw new import_auth0_auth_js.EnterpriseConnectNotSupportedError(name);
533
+ },
534
+ configurable: true
535
+ });
536
+ } else if (typeof desc.value === "function" && !EC_ALLOWED_METHODS.has(name)) {
537
+ instance[name] = () => {
538
+ throw new import_auth0_auth_js.EnterpriseConnectNotSupportedError(name);
539
+ };
540
+ }
541
+ }
542
+ }
543
+
501
544
  // src/server-client.ts
502
545
  var normalizeDomain = (value) => {
503
546
  const trimmed = value.trim();
@@ -515,7 +558,7 @@ var decodeIssuer = (token) => {
515
558
  var ID_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:id_token";
516
559
  var ID_TOKEN_EXPIRY_SKEW_SECONDS = 30;
517
560
  var actorUnavailableError = (message) => {
518
- const error = new import_auth0_auth_js.TokenExchangeError(message);
561
+ const error = new import_auth0_auth_js2.TokenExchangeError(message);
519
562
  error.code = TokenExchangeErrorCode.ACTOR_UNAVAILABLE;
520
563
  return error;
521
564
  };
@@ -536,6 +579,7 @@ var ServerClient = class {
536
579
  #transactionStoreIdentifier;
537
580
  #stateStore;
538
581
  #stateStoreIdentifier;
582
+ #enterpriseConnect;
539
583
  #authClientOptions;
540
584
  #staticDomain;
541
585
  #authClient;
@@ -606,16 +650,36 @@ var ServerClient = class {
606
650
  }
607
651
  constructor(options) {
608
652
  this.#options = options;
653
+ this.#enterpriseConnect = !!options.enterpriseConnect;
609
654
  this.#stateStoreIdentifier = this.#options.stateIdentifier || "__a0_session";
610
655
  this.#transactionStoreIdentifier = this.#options.transactionIdentifier || "__a0_tx";
611
656
  this.#transactionStore = options.transactionStore;
612
- this.#stateStore = options.stateStore;
613
- if (!this.#options.stateStore) {
657
+ if (!this.#enterpriseConnect && !this.#options.stateStore) {
614
658
  throw new MissingRequiredArgumentError("stateStore");
615
659
  }
660
+ this.#stateStore = this.#enterpriseConnect ? new NullStateStore() : this.#options.stateStore;
616
661
  if (!this.#options.transactionStore) {
617
662
  throw new MissingRequiredArgumentError("transactionStore");
618
663
  }
664
+ if (this.#enterpriseConnect) {
665
+ if (typeof this.#options.domain === "function") {
666
+ throw new InvalidConfigurationError(
667
+ "Enterprise Connect requires a static domain string. DomainResolver is not supported because isFederatedDomain needs a concrete domain."
668
+ );
669
+ }
670
+ const scope = this.#options.authorizationParams?.scope ?? "";
671
+ if (scope.includes("offline_access")) {
672
+ console.warn(
673
+ '[Auth0] Enterprise Connect: "offline_access" in scope has no effect. B2B Integration clients are not issued refresh tokens.'
674
+ );
675
+ }
676
+ if (this.#options.organization || this.#options.authorizationParams?.organization) {
677
+ console.warn(
678
+ '[Auth0] Enterprise Connect: static "organization" is set. The organization is resolved per login by HRD from the login_hint email domain. A static value routes all enterprise users to the same organization.'
679
+ );
680
+ }
681
+ applyEnterpriseConnectRestrictions(this);
682
+ }
619
683
  if (typeof this.#options.domain !== "string" && typeof this.#options.domain !== "function") {
620
684
  throw new InvalidConfigurationError("domain must be a string or resolver function");
621
685
  }
@@ -632,7 +696,7 @@ var ServerClient = class {
632
696
  if (typeof this.#options.domain === "string") {
633
697
  const domain = normalizeDomain(this.#options.domain);
634
698
  this.#staticDomain = domain;
635
- this.#authClient = new import_auth0_auth_js.AuthClient({
699
+ this.#authClient = new import_auth0_auth_js2.AuthClient({
636
700
  domain,
637
701
  ...this.#authClientOptions,
638
702
  telemetry: getTelemetryConfig(this.#options.telemetry)
@@ -669,7 +733,7 @@ var ServerClient = class {
669
733
  return normalizeDomain(this.#options.domain);
670
734
  }
671
735
  #createAuthClient(domain) {
672
- return new import_auth0_auth_js.AuthClient({
736
+ return new import_auth0_auth_js2.AuthClient({
673
737
  domain,
674
738
  ...this.#authClientOptions,
675
739
  telemetry: getTelemetryConfig(this.#options.telemetry)
@@ -706,6 +770,33 @@ var ServerClient = class {
706
770
  const resolvedDomain = await this.#resolveDomain(storeOptions);
707
771
  return sessionDomain === resolvedDomain;
708
772
  }
773
+ /**
774
+ * Starts the Enterprise Connect login flow. Performs WebFinger domain discovery
775
+ * and, if the email domain is federated, initiates an interactive login with `login_hint`.
776
+ *
777
+ * @param options Options including the user's email and optional returnTo URL.
778
+ * @param storeOptions Optional options passed to the Transaction Store.
779
+ *
780
+ * @returns A URL to redirect to (federated domain) or null (not federated / invalid email).
781
+ */
782
+ async startEnterpriseLogin(options, storeOptions) {
783
+ const parts = options.email.split("@");
784
+ if (parts.length !== 2 || !parts[0] || !parts[1]) return null;
785
+ const emailDomain = parts[1].toLowerCase();
786
+ const domain = await this.#resolveDomain(storeOptions);
787
+ const isFederated = await (0, import_auth0_auth_js2.isFederatedDomain)(domain, emailDomain, {
788
+ customFetch: this.#options.customFetch,
789
+ telemetry: getTelemetryConfig(this.#options.telemetry)
790
+ });
791
+ if (!isFederated) return null;
792
+ return this.startInteractiveLogin(
793
+ {
794
+ authorizationParams: { login_hint: options.email },
795
+ appState: options.returnTo ? { returnTo: options.returnTo } : void 0
796
+ },
797
+ storeOptions
798
+ );
799
+ }
709
800
  /**
710
801
  * Starts the interactive login process, and returns a URL to redirect the user-agent to to request authorization at Auth0.
711
802
  *
@@ -727,12 +818,13 @@ var ServerClient = class {
727
818
  if (!redirectUri) {
728
819
  throw new MissingRequiredArgumentError("authorizationParams.redirect_uri");
729
820
  }
730
- const scope = ensureOpenIdScope(options?.authorizationParams?.scope ?? this.#options.authorizationParams?.scope);
821
+ const rawScope = ensureOpenIdScope(options?.authorizationParams?.scope ?? this.#options.authorizationParams?.scope);
822
+ const scope = this.#enterpriseConnect ? rawScope.split(" ").filter((s) => s !== "offline_access").join(" ") : rawScope;
731
823
  const perLoginAuthParamsOrganization = typeof options?.authorizationParams?.organization === "string" ? options.authorizationParams.organization : void 0;
732
824
  const clientAuthParamsOrganization = typeof this.#options.authorizationParams?.organization === "string" ? this.#options.authorizationParams.organization : void 0;
733
825
  const resolvedOrganization = options?.organization ?? perLoginAuthParamsOrganization ?? this.#options.organization ?? clientAuthParamsOrganization;
734
826
  if (resolvedOrganization !== void 0 && !resolvedOrganization.trim()) {
735
- throw new import_auth0_auth_js.OrganizationValidationError("organization must not be blank");
827
+ throw new import_auth0_auth_js2.OrganizationValidationError("organization must not be blank");
736
828
  }
737
829
  const hasInvitation = !!(options?.invitation || options?.authorizationParams?.invitation);
738
830
  if (hasInvitation && !resolvedOrganization) {
@@ -777,6 +869,7 @@ var ServerClient = class {
777
869
  * @throws {SessionExpiredError} When the ID token's `session_expiry` is already in the past at login (the session is born expired); nothing is persisted.
778
870
  *
779
871
  * @returns A promise resolving to an object, containing the original appState (if present) and the authorizationDetails (when RAR was used).
872
+ * In Enterprise Connect mode, also includes `idTokenClaims` and `user`.
780
873
  *
781
874
  * @remarks
782
875
  * This method does not support the `fullResponse` opt-in in v1. It accepts
@@ -798,6 +891,16 @@ var ServerClient = class {
798
891
  organization: transactionData.organization
799
892
  }, requestOptions);
800
893
  await this.#transactionStore.delete(this.#transactionStoreIdentifier, storeOptions);
894
+ if (this.#enterpriseConnect) {
895
+ const claims = tokenEndpointResponse.claims;
896
+ const user = claims ? Object.fromEntries(Object.entries(claims).filter(([, v]) => v !== void 0)) : void 0;
897
+ return {
898
+ appState: transactionData.appState,
899
+ authorizationDetails: tokenEndpointResponse.authorizationDetails,
900
+ idTokenClaims: claims,
901
+ user
902
+ };
903
+ }
801
904
  const existingStateData = await this.#stateStore.get(this.#stateStoreIdentifier, storeOptions);
802
905
  const stateData = applySessionExpiryAtLogin(
803
906
  updateStateData(transactionData.audience ?? "default", existingStateData, tokenEndpointResponse, {
@@ -806,7 +909,10 @@ var ServerClient = class {
806
909
  tokenEndpointResponse.claims
807
910
  );
808
911
  await this.#stateStore.set(this.#stateStoreIdentifier, stateData, true, storeOptions);
809
- return { appState: transactionData.appState, authorizationDetails: tokenEndpointResponse.authorizationDetails };
912
+ return {
913
+ appState: transactionData.appState,
914
+ authorizationDetails: tokenEndpointResponse.authorizationDetails
915
+ };
810
916
  }
811
917
  /**
812
918
  * Starts the user linking process, and returns a URL to redirect the user-agent to to request authorization at Auth0.
@@ -975,7 +1081,7 @@ var ServerClient = class {
975
1081
  };
976
1082
  if (options.fullResponse) {
977
1083
  if (!response) {
978
- throw new import_auth0_auth_js.MissingCapturedResponseError();
1084
+ throw new import_auth0_auth_js2.MissingCapturedResponseError();
979
1085
  }
980
1086
  return { data: result, response };
981
1087
  }
@@ -1044,7 +1150,7 @@ var ServerClient = class {
1044
1150
  return;
1045
1151
  }
1046
1152
  if (!options.redirectUri || typeof options.redirectUri !== "string") {
1047
- throw new import_auth0_auth_js.PasswordlessStartError("redirectUri is required to start a passwordless magic-link login.");
1153
+ throw new import_auth0_auth_js2.PasswordlessStartError("redirectUri is required to start a passwordless magic-link login.");
1048
1154
  }
1049
1155
  const state = crypto.randomUUID();
1050
1156
  const scope = ensureOpenIdScope(options.scope ?? this.#options.authorizationParams?.scope);
@@ -1121,7 +1227,7 @@ var ServerClient = class {
1121
1227
  };
1122
1228
  if (options.fullResponse) {
1123
1229
  if (!response) {
1124
- throw new import_auth0_auth_js.MissingCapturedResponseError();
1230
+ throw new import_auth0_auth_js2.MissingCapturedResponseError();
1125
1231
  }
1126
1232
  return { data: result, response };
1127
1233
  }
@@ -1156,7 +1262,7 @@ var ServerClient = class {
1156
1262
  const expectedState = typeof transactionData.state === "string" ? transactionData.state : void 0;
1157
1263
  const returnedState = url.searchParams.get("state");
1158
1264
  if (!returnedState || !expectedState || returnedState !== expectedState) {
1159
- throw new import_auth0_auth_js.PasswordlessVerifyError("State mismatch on magic-link callback");
1265
+ throw new import_auth0_auth_js2.PasswordlessVerifyError("State mismatch on magic-link callback");
1160
1266
  }
1161
1267
  const domain = transactionData.domain ?? await this.#resolveDomain(storeOptions);
1162
1268
  const authClient = this.#getAuthClient(domain);
@@ -1313,7 +1419,7 @@ var ServerClient = class {
1313
1419
  }
1314
1420
  }
1315
1421
  if (!stateData?.refreshToken) {
1316
- throw new import_auth0_auth_js.TokenByRefreshTokenError(
1422
+ throw new import_auth0_auth_js2.TokenByRefreshTokenError(
1317
1423
  "The access token has expired and a refresh token was not provided. The user needs to re-authenticate."
1318
1424
  );
1319
1425
  }
@@ -1352,7 +1458,7 @@ var ServerClient = class {
1352
1458
  };
1353
1459
  if (resolvedOptions?.fullResponse) {
1354
1460
  if (!response) {
1355
- throw new import_auth0_auth_js.MissingCapturedResponseError();
1461
+ throw new import_auth0_auth_js2.MissingCapturedResponseError();
1356
1462
  }
1357
1463
  return { data: returnTokenSet, response };
1358
1464
  }
@@ -1382,7 +1488,7 @@ var ServerClient = class {
1382
1488
  }
1383
1489
  }
1384
1490
  if (!stateData?.refreshToken) {
1385
- throw new import_auth0_auth_js.TokenForConnectionError(
1491
+ throw new import_auth0_auth_js2.TokenForConnectionError(
1386
1492
  "A refresh token was not found but is required to be able to retrieve an access token for a connection."
1387
1493
  );
1388
1494
  }
@@ -1423,7 +1529,7 @@ var ServerClient = class {
1423
1529
  };
1424
1530
  if (options.fullResponse) {
1425
1531
  if (!response) {
1426
- throw new import_auth0_auth_js.MissingCapturedResponseError();
1532
+ throw new import_auth0_auth_js2.MissingCapturedResponseError();
1427
1533
  }
1428
1534
  return { data: returnConnectionTokenSet, response };
1429
1535
  }
@@ -1479,6 +1585,14 @@ var ServerClient = class {
1479
1585
  * @returns {URL}
1480
1586
  */
1481
1587
  async logout(options, storeOptions, requestOptions) {
1588
+ if (this.#enterpriseConnect) {
1589
+ if (options.federated === false) {
1590
+ console.warn(
1591
+ "[Auth0] Enterprise Connect: logout() called with federated=false. The enterprise IdP session will remain active; the user may silently re-authenticate on the next login."
1592
+ );
1593
+ }
1594
+ return this.authClient.buildLogoutUrl({ returnTo: options.returnTo, federated: options.federated ?? true });
1595
+ }
1482
1596
  if (!this.#isResolverMode()) {
1483
1597
  try {
1484
1598
  await this.revokeRefreshToken({}, storeOptions, requestOptions);
@@ -1537,7 +1651,7 @@ var ServerClient = class {
1537
1651
  };
1538
1652
  if (options.fullResponse) {
1539
1653
  if (!response) {
1540
- throw new import_auth0_auth_js.MissingCapturedResponseError();
1654
+ throw new import_auth0_auth_js2.MissingCapturedResponseError();
1541
1655
  }
1542
1656
  return { data: result, response };
1543
1657
  }
@@ -1601,7 +1715,7 @@ var ServerClient = class {
1601
1715
  throw new MissingRequiredArgumentError("subjectTokenType");
1602
1716
  }
1603
1717
  if (options.organization !== void 0 && !options.organization.trim()) {
1604
- throw new import_auth0_auth_js.OrganizationValidationError("organization must not be blank");
1718
+ throw new import_auth0_auth_js2.OrganizationValidationError("organization must not be blank");
1605
1719
  }
1606
1720
  const domain = await this.#resolveDomain(storeOptions);
1607
1721
  const actor = await this.#resolveSessionTransferActor(options.actor, domain, storeOptions);
@@ -1675,7 +1789,7 @@ var ServerClient = class {
1675
1789
  url.searchParams.set("session_transfer_token", result.sessionTransferToken);
1676
1790
  if (options?.organization !== void 0) {
1677
1791
  if (!options.organization.trim()) {
1678
- throw new import_auth0_auth_js.OrganizationValidationError("organization must not be blank");
1792
+ throw new import_auth0_auth_js2.OrganizationValidationError("organization must not be blank");
1679
1793
  }
1680
1794
  url.searchParams.set("organization", options.organization);
1681
1795
  }
@@ -1900,7 +2014,7 @@ var AbstractTransactionStore = class extends AbstractStore {
1900
2014
  };
1901
2015
 
1902
2016
  // src/index.ts
1903
- var import_auth0_auth_js5 = require("@auth0/auth0-auth-js");
2017
+ var import_auth0_auth_js6 = require("@auth0/auth0-auth-js");
1904
2018
 
1905
2019
  // src/store/cookie-transaction-store.ts
1906
2020
  var CookieTransactionStore = class extends AbstractTransactionStore {
@@ -2097,13 +2211,13 @@ var StatelessStateStore = class extends AbstractSessionStore {
2097
2211
  };
2098
2212
 
2099
2213
  // src/mfa/index.ts
2100
- var import_auth0_auth_js2 = require("@auth0/auth0-auth-js");
2214
+ var import_auth0_auth_js3 = require("@auth0/auth0-auth-js");
2101
2215
 
2102
2216
  // src/passkey/index.ts
2103
- var import_auth0_auth_js3 = require("@auth0/auth0-auth-js");
2217
+ var import_auth0_auth_js4 = require("@auth0/auth0-auth-js");
2104
2218
 
2105
2219
  // src/database/index.ts
2106
- var import_auth0_auth_js4 = require("@auth0/auth0-auth-js");
2220
+ var import_auth0_auth_js5 = require("@auth0/auth0-auth-js");
2107
2221
  // Annotate the CommonJS export names for ESM import in node:
2108
2222
  0 && (module.exports = {
2109
2223
  AbstractStateStore,
@@ -2111,6 +2225,7 @@ var import_auth0_auth_js4 = require("@auth0/auth0-auth-js");
2111
2225
  BackchannelLogoutError,
2112
2226
  ChangePasswordError,
2113
2227
  CookieTransactionStore,
2228
+ EnterpriseConnectNotSupportedError,
2114
2229
  InvalidConfigurationError,
2115
2230
  IssuerValidationError,
2116
2231
  MfaChallengeError,
@@ -2140,6 +2255,7 @@ var import_auth0_auth_js4 = require("@auth0/auth0-auth-js");
2140
2255
  TokenExchangeErrorCode,
2141
2256
  TokenRevocationError,
2142
2257
  UserInfoError,
2258
+ isFederatedDomain,
2143
2259
  isMfaRequiredError
2144
2260
  });
2145
2261
  //# sourceMappingURL=index.cjs.map