Adds Auth0 authentication to Next.js apps with proper session management, protected routes, and middleware support for both App Router and Pages Router. Built on the @auth0/nextjs-auth0 v4 SDK, which handles login/logout flows automatically once you configure middleware. The setup is straightforward if you follow the src/ directory conventions and understand the Next.js 15 vs 16 middleware differences (middleware.ts vs proxy.ts). Watch out for v3 to v4 migration gotchas like the removal of withPageAuthRequired and the switch from AUTH0_ISSUER_BASE_URL to AUTH0_DOMAIN. Good for production Next.js apps that need real user authentication, not useful for SPAs or React Native where different Auth0 SDKs make more sense.
npx skills add https://github.com/auth0/agent-skills --skill auth0-nextjs