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 create serious vulnerabilities. This Skill provides proven implementation patterns for the most common auth scenarios so you can build access control correctly the first time. ## Core Features & Use Cases - JWT & Refresh Token Flows: Generate short-lived access tokens, store hashed refresh tokens, and handle revocation for logout across devices. - Session & OAuth2 Login: Configure Express sessions backed by Redis with secure cookies, and add Google or GitHub social login via Passport.js. - Authorization Patterns: Implement role hierarchies (RBAC), permission-based checks, and resource ownership validation as Express middleware. - Use Case: When adding login to a REST API, apply the JWT pattern with bcrypt password hashing, rate-limited login endpoints, and role-based route protection to ship a secure auth layer. ## Quick Start Implement JWT authentication with refresh tokens and role-based access control for my Express API.