← スキル一覧に戻る

auth-skill
by subhankaladi
⭐ 2🍴 1📅 2026年1月24日
SKILL.md
name: auth-skill description: Implement secure authentication systems including signup, signin, password hashing, JWT tokens, and Better Auth integration.
Authentication System Skill
Instructions
-
User Signup
- Collect email and password
- Validate input fields
- Hash password before saving
- Store user in database
-
User Signin
- Verify email exists
- Compare hashed passwords
- Handle invalid credentials
- Return auth response
-
Password Hashing
- Use bcrypt or argon2
- Never store plain text passwords
- Apply proper salt rounds
-
JWT Tokens
- Generate access token on signin
- Include user ID in payload
- Set token expiration
- Verify token on protected routes
-
Better Auth Integration
- Configure Better Auth provider
- Connect with database
- Use built-in session handling
- Secure cookies and tokens
Best Practices
- Always hash passwords
- Use HTTPS only
- Set short token expiry
- Store secrets in environment variables
- Protect all private routes
Example Flow
// Signup
User → Hash Password → Save User
// Signin
User → Verify Password → Generate JWT
// Protected Route
Request → Verify JWT → Allow Access
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です