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

    Type Alias Auth0ProviderProps

    Props for the Auth0Provider component. Adds anonymousSession prop for seeding SWR cache (SSR fallback, no loading flash).

    type Auth0ProviderProps = {
        anonymousSession?: AnonymousSession | null;
        anonymousSessionRoute?: string;
        children: React.ReactNode;
        profileRoute?: string;
        user?: User;
    }
    Index
    anonymousSession?: AnonymousSession | null

    Initial anonymous session data to populate the SWR cache. Prevents loading flash when anonymous session is fetched server-side. Optional; if omitted, SWR fetches normally.

    anonymousSessionRoute?: string

    Custom route for the anonymous session endpoint. If not specified, falls back to the NEXT_PUBLIC_ANONYMOUS_SESSION_ROUTE environment variable or "/auth/anonymous-session".

    '/tenant-a/auth/anonymous-session'
    
    children: React.ReactNode

    Child components to render within the provider.

    profileRoute?: string

    Custom route for the profile endpoint. Useful for multi-tenant applications where different tenants require different route configurations. If not specified, falls back to the NEXT_PUBLIC_PROFILE_ROUTE environment variable or "/auth/profile".

    '/tenant-a/auth/profile'
    
    user?: User

    Initial user data to populate the SWR cache for the profile endpoint.