What problem does it solve? Building secure login, token management, and permission systems from scratch is error-prone, and mistakes in auth logic lead to serious vulnerabilities like weak password hashing, insecure token storage, or missing access controls. ## Core Features & Use Cases - Multiple Auth Types: Implements JWT with refresh tokens, server-side sessions, OAuth/OIDC with PKCE, and hashed API keys. - Authorization Patterns: Designs RBAC role-permission mappings and ABAC attribute-based policies enforced at the route level. - Security Checklist: Enforces bcrypt/argon2 hashing, rate limiting, account lockout, token rotation, CSRF protection, and HTTPS. - Use Case: When adding login to a web app, use this Skill to generate auth middleware, register/login/refresh/logout endpoints, and role-based guards following security best practices. ## Quick Start Ask the agent to design and implement a JWT-based authentication system with refresh tokens and role-based access control for your API.