Back to skills

auth0-nextjs

security

Adds authentication to Next.js apps using the @auth0/nextjs-auth0 SDK. Handles login, logout, session management, and protected routes for both App Router and Pages Router. It generates the correct Au

Setup & Installation

npx skills add https://github.com/auth0/auth0-nextjs --skill auth0-nextjs
or paste the link and ask your coding assistant to install it
https://github.com/auth0/auth0-nextjs
View on GitHub

What This Skill Does

Adds authentication to Next.js apps using the @auth0/nextjs-auth0 SDK. Handles login, logout, session management, and protected routes for both App Router and Pages Router. It generates the correct Auth0Client setup, middleware config, and provider wiring for your specific Next.js version instead of you piecing it together from docs.

When to use it

  • Working with auth0 nextjs functionality
  • Implementing auth0 nextjs features
  • Debugging auth0 nextjs related issues