跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Auth0 Next.js

技能 已验证 活跃
属于: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.

目的

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

功能

  • 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

使用场景

  • 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

非目标

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

工作流

  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

先决条件

  • 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

安装

/plugin install auth0@auth0-agent-skills

质量评分

已验证
100 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标20
许可证Apache-2.0
状态
查看源代码

类似扩展

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.

技能
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

技能
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

技能
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

技能
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.

技能
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.

技能
auth0