SuperAPI AI Directory

auth

Coding & development

View repository

Updated 10-15 17:33

About this skill

Auth Skills

This is a set of skills responsible for implementing authentication and payment functions.

Feature Details

Feature Details
Authentication Function See references/authentication.md
Payment Function See references/payments.md

Execution Steps

  1. Quality Assessment Gate(Step 0)
  2. Classify the user's request (authentication or payment)
  3. Read the appropriate reference file from the "Feature Details" above
  4. Implement according to its contents

Step 0: Quality Assessment Gate (Security Checklist)

Because authentication and payment functions always carry high security risks, be sure to display the following before starting work:

🔐 セキュリティチェックリスト

この作業はセキュリティ上重要です。以下を確認してください:

### 認証関連
- [ ] パスワードはハッシュ化(bcrypt/argon2)
- [ ] セッション管理は安全か(HTTPOnly Cookie)
- [ ] CSRF 対策は実装されているか
- [ ] レート制限(ブルートフォース対策)

### 決済関連
- [ ] 機密情報(カード番号等)をサーバーに保存しない
- [ ] Stripe/決済プロバイダの SDK を正しく使用
- [ ] Webhook の署名検証
- [ ] 金額改ざん防止(サーバー側で金額を確定)

### 共通
- [ ] エラーメッセージが詳細すぎないか(情報漏洩防止)
- [ ] ログに機密情報を出力していないか

Security Importance Display

⚠️ 注意レベル: 🔴 高

この機能は以下のリスクがあります:
- 認証情報の漏洩
- 不正アクセス
- 決済の不正操作

専門家によるレビューを推奨します。

For VibeCoder

🔐 安全にログイン・決済機能を作るために

1. **パスワードは「ハッシュ化」する**
   - 元のパスワードを復元できない形で保存
   - 万が一データが漏れても安全

2. **カード情報はサーバーに保存しない**
   - Stripe などの専用サービスに任せる
   - 自分のサーバーには一切保存しない

3. **エラーメッセージは曖昧に**
   - 「パスワードが違います」ではなく「認証に失敗しました」
   - 悪意ある人にヒントを与えない