概要
This skill provides a robust framework for implementing JSON Web Token (JWT) security within FastAPI applications. It automates the creation of authentication middleware, secure token generation, and password hashing using industry-standard bcrypt. A key focus is user isolation, providing patterns that strictly validate token-based user IDs against request paths to prevent unauthorized data access. It is specifically optimized for environments using shared secrets like Better Auth, ensuring seamless authentication consistency between frontend and backend services.