skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

auth0-nextjs

Add authentication to Next.js applications (App Router and Pages Router).

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/auth0/agent-skills --skill auth0-nextjs

Overview

What This Skill Does

Add authentication to Next.js applications using @auth0/nextjs-auth0. Supports both App Router and Pages Router.

Application

When to use this Skill

Documentation

Show Skills.md file

Auth0 Next.js Integration

Add authentication to Next.js applications using @auth0/nextjs-auth0. Supports both App Router and Pages Router.


Prerequisites

  • Next.js 13+ application (App Router or Pages Router)
  • Auth0 account and application configured
  • If you don't have Auth0 set up yet, use the auth0-quickstart skill first

When NOT to Use

  • Client-side only React apps - Use auth0-react for Vite/CRA SPAs
  • React Native mobile apps - Use auth0-react-native for iOS/Android
  • Non-Next.js frameworks - Use framework-specific SDKs (Express, Vue, Angular, etc.)
  • Stateless APIs only - Use JWT validation middleware if you don't need session management

Quick Start Workflow

1. Install SDK

Lines 1 - 25 of 275

Recommendations

Explore other random skills

All skillsMy patterns