auth0-nextjs

auth0-nextjs

Use when adding Auth0 login, logout, protected pages, or middleware to a Next.js application. Supports App Router and Pages Router with @auth0/nextjs-auth0 — use even if the user says \"add login to my Next.js app\" or \"protect my Next.js routes\".

44Star
25Fork
更新于 2026/8/21
请求的译文尚未完成,当前显示原始英文。
SKILL.md
只读
名称
auth0-nextjs
描述

Use when adding Auth0 login, logout, protected pages, or middleware to a Next.js application. Supports App Router and Pages Router with @auth0/nextjs-auth0 — use even if the user says \"add login to my Next.js app\" or \"protect my Next.js routes\".

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