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.
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 renderAuth0Providerdirectly from a Server Component such asapp/layout.tsx. Components that call hooks likeuseAuth0must still be Client Components.