@auth0/auth0-react
    Preparing search index...

    Function Auth0Provider

    • <Auth0Provider
      domain={domain}
      clientId={clientId}
      authorizationParams={{ redirect_uri: window.location.origin }}>
      <MyApp />
      </Auth0Provider>

      Provides the Auth0Context to its child components.

      The SDK is a client-only module (its published ESM and CommonJS bundles ship the 'use client' directive), so in a Next.js App Router app you can import and render Auth0Provider directly from a Server Component such as app/layout.tsx. Components that call hooks like useAuth0 must still be Client Components.

      Type Parameters

      Parameters

      Returns Element