Skip to content
Back to skills

Auth Skill

ASecurity

Implement secure authentication systems including signup, signin, password hashing, JWT tokens, and Better Auth integration.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
securitygodatabase

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill auth-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auth Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auth Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-auth-skill/badge)](https://www.skillsdirectory.com/skills/david-li0406-auth-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

1. **User Signup**
   - Collect email and password
   - Validate input fields
   - Hash password before saving
   - Store user in database

2. **User Signin**
   - Verify email exists
   - Compare hashed passwords
   - Handle invalid credentials
   - Return auth response

3. **Password Hashing**
   - Use bcrypt or argon2
   - Never store plain text passwords
   - Apply proper salt rounds

4. **JWT Tokens**
   - Generate access token on signin
   - Include user ID in payload
   - Set token expiration
   - Verify token on protected routes

5. **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
```ts
// Signup
User → Hash Password → Save User

// Signin
User → Verify Password → Generate JWT

// Protected Route
Request → Verify JWT → Allow Access

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…