clerk-auth
Clerk 认证实现的专家模式,涵盖中间件、组织、webhook 和用户同步。适用场景:添加身份验证、clerk auth、用户身份验证、登录、注册。
机器翻译查看英文原文
Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authentication, sign in, sign up.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Clerk Authentication
- Patterns
- Next.js App Router Setup
- Middleware Route Protection
- Server Component Authentication
- ⚠️ Sharp Edges
Complete Clerk setup for Next.js 14/15 App Router. Includes ClerkProvider, environment variables, and basic sign-in/sign-up components. Key components: ClerkProvider: Wraps app for auth context , : Pre-built auth forms : User menu with session management Protect routes using clerkMiddleware and createRouteMatcher. Best practices: Single middleware.ts file at project root Use createRouteMatcher for route groups auth.protect() for explicit protection Centralize all auth logic in middleware Access auth state in Server Components using auth() and currentUser(). Key functions: auth(): Returns userId, sessionId, orgId, claims currentUser(): Returns full User object Both require clerkMiddleware to be configured | Issue | Severity | Solution | |-------|----------|----------| | Issue | critical | See docs | | Issue | high | See docs | | Issue | high | See docs | | Issue | high | See docs | | Issue | medium | See docs | | Issue | medium | See docs | | Issue | medium | See docs | | Issue | medium | See docs |
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/development/clerk-auth/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.186Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。