From claude-code-starter
Adds complete user authentication system with login/registration, OAuth, JWT tokens, permission controls, and protected routes. Detects stacks like React/Vue frontend and FastAPI/Express/Next.js backend.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
帮用户为项目添加完整的用户认证系统。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
帮用户为项目添加完整的用户认证系统。
问题 1:认证方式
你想用哪种登录方式?
- 邮箱 + 密码(最常见)
- OAuth 社交登录(Google、GitHub 等)
- 两者都要 不确定的话,先用邮箱+密码,后续再加社交登录。
问题 2:是否需要注册页面
需要用户注册页面吗?还是只需要后端认证逻辑?
查看项目结构,确定:
后端:
前端:
安全措施:
测试完整流程:注册 → 登录 → 访问受保护页面 → 登出。
登录功能已添加。测试流程正常。 需要加社交登录或忘记密码功能吗?