‹ 首页

user-auth-flows

@lngyneric · 收录于 1 周前 · 上游提交 2 周前

Use when changing backend user auth, verification codes, token persistence, temp-user behavior, or auth-provider integration. Keep provider dispatch and credential state centralized.

适合你,如果经常需要实现或修改用户认证逻辑

/ 通过 npx 安装 校验哈希
npx oh-my-skill add lngyneric/ai-coach/user-auth-flows
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- lngyneric/ai-coach/user-auth-flows
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify lngyneric/ai-coach/user-auth-flows
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~216上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 5802c88 · 表述以原文为准
它做什么

安装后,Claude 会按照仓库、令牌存储和认证工厂的路径来修改用户认证逻辑,并确保验证码、令牌持久化、临时用户行为等同步更新。

什么时候触发

当你要求修改后端用户认证、验证码、令牌持久化、临时用户行为或认证提供者集成时触发。

装好后可以这样说
Claude 会同步更新前后端认证载荷。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 5802c88

User Auth Flows

Core Rules
  • Keep repository, token-store, and auth-factory paths as the source of truth.
  • Preserve verification-code consumption semantics and retry safety.
  • Update frontend-facing auth payloads together with backend persistence logic.
Workflow
  1. Start from repository.py, token_store.py, auth/factory.py, and the specific flow file such as email_flow.py or phone_flow.py.
  2. Confirm whether the change affects credentials, tokens, temp users, or provider dispatch.
  3. Update validation and persistence together; avoid one-sided changes in route or provider code.
  4. Add or update tests under src/api/tests/service/user/.
Regression Checklist
  • Happy-path login or verification.
  • Retry or duplicate submission path.
  • Invalid or expired verification code.
  • Token persistence and logout semantics when affected.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。