Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Auth0 Next.js

Skill Verifiziert Aktiv
Teil von:Auth0

Use when adding authentication to Next.js applications (login, logout, protected pages, middleware, server components) - supports App Router and Pages Router with @auth0/nextjs-auth0 SDK.

Zweck

To simplify and expedite the process of adding robust authentication to Next.js applications using Auth0.

Funktionen

  • Supports Next.js App Router and Pages Router
  • Integrates with @auth0/nextjs-auth0 SDK
  • Provides setup, configuration, and code examples
  • Includes guidance on middleware and protected routes
  • Offers troubleshooting for common issues

Anwendungsfälle

  • Adding login, logout, and protected pages to a Next.js app
  • Configuring Auth0 authentication for server components
  • Implementing server-side session management in Next.js
  • Securing API routes within a Next.js application

Nicht-Ziele

  • Client-side only React SPAs
  • React Native mobile apps
  • Non-Next.js web frameworks
  • Stateless API authentication without session management

Workflow

  1. Install @auth0/nextjs-auth0 SDK
  2. Configure environment variables (.env.local)
  3. Create Auth0 client and middleware
  4. Add user context (optional)
  5. Add authentication UI
  6. Test authentication flow

Voraussetzungen

  • 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

Installation

/plugin install auth0@auth0-agent-skills

Qualitätspunktzahl

Verifiziert
100 /100
Analysiert about 21 hours ago

Vertrauenssignale

Letzter Commitabout 23 hours ago
Sterne20
LizenzApache-2.0
Status
Quellcode ansehen

Ähnliche Erweiterungen

Auth0 Flask

100

Use when adding login, logout, and user profile to a Flask web application using session-based authentication - integrates auth0-server-python for server-rendered apps with login/callback/profile/logout flows.

Skill
auth0

Auth0 Express OAuth2 JWT Bearer

100

Use when adding Auth0 token validation to Express or Node.js APIs - integrates express-oauth2-jwt-bearer SDK to protect Node.js API endpoints with JWT Bearer authentication, scope-based RBAC, claim validation, and optional DPoP support

Skill
auth0

Auth0 SPA JS Integration

100

Use when adding authentication to Vanilla JS, Svelte, or any framework-agnostic single-page applications - integrates @auth0/auth0-spa-js SDK for SPAs without framework-specific wrappers

Skill
auth0

Auth0 Nuxt

100

Use when implementing Auth0 authentication in Nuxt 3/4 applications, configuring session management, protecting routes with middleware, or integrating API access tokens - provides setup patterns, composable usage, and security best practices for the @auth0/auth0-nuxt SDK

Skill
auth0

Auth0 Java Mvc Common

100

Use when adding Auth0 login, logout, and callback handling to Java Servlet web applications - integrates com.auth0:mvc-auth-commons SDK for server-side Java apps using javax.servlet with session-based authentication. Triggers on AuthenticationController, AuthorizeUrl, Tokens, IdentityVerificationException, Java MVC auth.

Skill
auth0

Auth0 Expo Integration

100

Use when adding authentication to Expo (React Native) mobile apps — login, logout, user sessions, protected routes, biometrics, or token management. Integrates react-native-auth0 SDK with Expo Config Plugin for native iOS/Android builds. Trigger for any Expo project needing Auth0, including app.json plugin config, custom scheme setup, or credential management. Do NOT use for bare React Native CLI projects (use auth0-react-native), React web apps (use auth0-react), Next.js (use auth0-nextjs), or backend APIs.

Skill
auth0