auth0-nextjs

作者: auth0

為Next.js應用程式加入Auth0認證,包含工作階段管理、受保護路由及中介軟體。支援App Router與Pages Router,透過/auth/login、/auth/logout及/auth/callback端點自動處理OAuth回呼。透過auth0.getSession()為伺服器元件與API路由提供伺服器端工作階段存取,並為客戶端元件提供客戶端useUser()鉤子。需設定中介軟體(Next.js 15+使用middleware.ts,Next.js 16使用proxy.ts)以...

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

來自 auth0 的更多技能

acul-screen-generator
auth0
在構建或自訂 Auth0 Universal Login 畫面並需要完整 UI 控制時使用——使用 ACUL React 或…建立品牌化的登入、註冊或 MFA 畫面。
official
auth0-android
auth0
Use when adding Auth0 login, logout, or credential management to an Android app in Kotlin or Java. Covers Web Auth, biometric-protected CredentialsManager, and…
official
auth0-android-major-migration
auth0
用於將 Android 應用程式的 Auth0 SDK(com.auth0.android:auth0)升級至下一個主要版本時。偵測目前版本、檢查先決條件,以及…
official
auth0-angular
auth0
Use when adding Auth0 login, logout, route guards, or HTTP interceptors to an Angular application. Integrates @auth0/auth0-angular for SPAs — use even if the…
official
auth0-aspnetcore-api
auth0
Use when protecting ASP.NET Core Web API endpoints with JWT Bearer token validation, scope checks, or DPoP binding. Integrates…
official
auth0-aspnetcore-authentication
auth0
在為ASP.NET Core MVC、Razor Pages或Blazor Server網頁應用程式加入基於Cookie的登入、登出或使用者個人資料功能時使用。整合…
official
auth0-branding
auth0
在自訂 Auth0 Universal Login 外觀以符合品牌形象時使用——包括變更顏色、字型、頁面版面或登入文字。亦可在重設……時使用。
official
auth0-custom-domains
auth0
用於設定、驗證或疑難排解自訂 Auth0 登入網域(例如 login.example.com)時使用。涵蓋 CNAME 設定、驗證、TLS 原則、多項…
official