@auth0/nextjs-auth0 - v4.30.0
    Preparing search index...

    Function startEnterpriseLogin

    • Client component counterpart to the server startEnterpriseLogin.

      Asks the SDK's mounted /auth/federated-domain route whether the email domain is federated and, when it is, navigates the browser to /auth/login with the email as login_hint. Discovery runs on the server so the browser never calls WebFinger directly, which would let anyone enumerate the tenant's customer domains.

      Parameters

      Returns Promise<boolean>

      true when the domain is federated and the browser was navigated to Auth0; false when it is not, so the caller can fall back to its own non-enterprise login.

      "use client";
      import { startEnterpriseLogin } from "@auth0/nextjs-auth0";

      async function onSubmit(email: string) {
      const redirected = await startEnterpriseLogin({ email, returnTo: "/dashboard" });
      if (!redirected) await yourExistingLogin(email); // not a federated domain
      }

      Enterprise Connect for the full flow.