Login options. email is required and drives discovery.
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.
Client component counterpart to the server
startEnterpriseLogin.Asks the SDK's mounted
/auth/federated-domainroute whether the email domain is federated and, when it is, navigates the browser to/auth/loginwith the email aslogin_hint. Discovery runs on the server so the browser never calls WebFinger directly, which would let anyone enumerate the tenant's customer domains.