auth-setup by get-convex/agent-skills
npx skills add https://github.com/get-convex/agent-skills --skill auth-setup在 Convex 中实现安全的认证机制,包括用户管理和访问控制。
Convex 支持多种认证方式。请勿假定使用某个提供商。
在编写设置代码之前:
常见选项:
在询问之前,先在代码库中寻找线索:
@clerk/*、@workos-inc/*、@auth0/* 或 Convex Auth 包广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
convex/auth.config.ts、认证中间件、提供商包装器或登录组件阅读该提供商的官方指南和匹配的本地参考文件:
本地参考文件包含具体的工作流程、预期的文件和环境变量、注意事项以及验证检查。
使用这些来源来了解:
convex/auth.config.ts 设置然后阅读 references/common-patterns.md,了解适用于所有提供商的 Convex 端通用模式:
ctx.auth.getUserIdentity() 映射到 users 表getCurrentUser 和 getCurrentUserOrNullrequireAdmin在有文档可用的情况下,请勿凭记忆发明提供商特定的设置。不要假设提供商初始化命令就完成了整个集成。请验证生成的文件,并完成提供商参考文件中指出的初始化后配置步骤。
references/common-patterns.md 中的共享 Convex 模式users 表时,配置 storeUser 或等效的身份同步如果流程因交互式提供商或部署设置而受阻,请明确询问用户需要执行的确切人工步骤,待其完成后继续。对于面向 UI 的认证流程,可以在设置完成后主动提出验证真实的注册或登录流程。如果环境中有浏览器自动化工具,可以使用它们。如果没有,则给用户提供一个简短的手动验证清单。
references/convex-auth.mdreferences/clerk.mdreferences/workos-authkit.mdreferences/auth0.mdreferences/common-patterns.mdtokenIdentifier 索引的用户表getCurrentUser 辅助函数storeUser mutation每周安装量
510
代码仓库
GitHub 星标数
15
首次出现
2026年2月18日
安全审计
安装于
github-copilot507
cursor506
gemini-cli506
amp506
codex506
kimi-cli506
Implement secure authentication in Convex with user management and access control.
Convex supports multiple authentication approaches. Do not assume a provider.
Before writing setup code:
Common options:
Look for signals in the repo before asking:
@clerk/*, @workos-inc/*, @auth0/*, or Convex Auth packagesconvex/auth.config.ts, auth middleware, provider wrappers, or login componentsRead the provider's official guide and the matching local reference file:
references/convex-auth.mdreferences/clerk.mdreferences/workos-authkit.mdreferences/auth0.mdThe local reference files contain the concrete workflow, expected files and env vars, gotchas, and validation checks.
Use those sources for:
convex/auth.config.ts setupThen read references/common-patterns.md for the Convex-side patterns that apply across providers:
ctx.auth.getUserIdentity() to a users tablegetCurrentUser and getCurrentUserOrNullrequireAdminDo not invent provider-specific setup from memory when the docs are available. Do not assume provider initialization commands finish the entire integration. Verify generated files and complete the post-init wiring steps the provider reference calls out.
references/common-patterns.mdstoreUser or equivalent identity sync only if the app needs a users tableIf the flow blocks on interactive provider or deployment setup, ask the user explicitly for the exact human step needed, then continue after they complete it. For UI-facing auth flows, offer to validate the real sign-up or sign-in flow after setup is done. If the environment has browser automation tools, you can use them. If it does not, give the user a short manual validation checklist instead.
references/convex-auth.mdreferences/clerk.mdreferences/workos-authkit.mdreferences/auth0.mdreferences/common-patterns.mdtokenIdentifier indexgetCurrentUser helper functionstoreUser mutation for first sign-inWeekly Installs
510
Repository
GitHub Stars
15
First Seen
Feb 18, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot507
cursor506
gemini-cli506
amp506
codex506
kimi-cli506
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装