What problem does it solve? Building secure authentication and authorization is error-prone, and mistakes like weak password hashing, missing token expiration, or client-side-only checks lead to serious vulnerabilities. This Skill provides production-tested patterns for implementing auth systems correctly the first time. ## Core Features & Use Cases - JWT Authentication: Generate and verify short-lived access tokens with refresh token rotation, revocation, and database-backed token storage. - Session & OAuth2 Login: Configure Redis-backed Express sessions and social login via Passport.js strategies for Google and GitHub. - Authorization Patterns: Implement role-based access control (RBAC), permission-based checks, and resource ownership validation as Express middleware. - Use Case: When adding login to a REST API, use this Skill to scaffold registration with bcrypt password hashing, JWT issuance, rate-limited login endpoints, and role-protected routes. ## Quick Start Use the auth-implementation-patterns skill to implement JWT authentication with refresh tokens and role-based access control for my Express API.