jwt-auth
Installation
SKILL.md
JWT Authentication Skill
Expert implementation of JWT token generation, verification, and user extraction for FastAPI and Python applications.
Quick Reference
| Operation | Function | Location |
|---|---|---|
| Generate token | create_access_token(data, expires_delta=None) |
auth/jwt.py |
| Verify token | verify_token(token: str) |
auth/dependencies.py |
| Get current user | get_current_user(token: str) |
auth/dependencies.py |
| User from payload | User.from_payload(payload) |
auth/dependencies.py |
Core Workflows
1. Generate Access Token
from auth.jwt import create_access_token