by sickn33
此技能提供在Next.js应用程序中实现Clerk身份验证的专家模式,包括中间件保护、服务器组件认证和用户管理工作流程。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 clerk-auth 技能" 开始使用
=== clerk-auth 技能 === 作者: sickn33 描述: 此技能提供在Next.js应用程序中实现Clerk身份验证的专家模式,包括中间件保护、服务器组件认证和用户管理工作流程。 使用方法: 1. 调用技能: "使用 clerk-auth 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 clerk-auth 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
security
low
Complete Clerk setup for Next.js 14/15 App Router.
Includes ClerkProvider, environment variables, and basic sign-in/sign-up components.
Key components:
Protect routes using clerkMiddleware and createRouteMatcher.
Best practices:
Access auth state in Server Components using auth() and currentUser().
Key functions:
| 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 |
View Count
0
Download Count
0
Favorite Count
0
Quality Score
68