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 JWT, sessions, OAuth2, and RBAC 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 Authentication: Configure Redis-backed Express sessions with secure cookies and integrate Google/GitHub social login via Passport.js. - Authorization Patterns: Implement role hierarchies, permission-based access control, and resource ownership checks as Express middleware. - Use Case: When adding login to a REST API, use this Skill to scaffold registration with bcrypt password hashing, rate-limited login endpoints, and middleware that protects routes by role. ## Quick Start Ask the AI to implement JWT authentication with refresh tokens and role-based route protection for your Express API.