What problem does it solve? Designing authentication and authorization incorrectly leads to catastrophic security failures, yet many teams start coding before deciding on token strategy, permission models, and trust boundaries. This Skill provides a structured process and production-grade implementation patterns for making these decisions deliberately. ## Core Features & Use Cases - Token Strategy Design: Decision matrix for choosing between session cookies, short-lived JWTs with refresh tokens, mTLS, and API keys based on application type. - Complete Implementation Patterns: Python/FastAPI code for JWT issuance with RS256, refresh token rotation with reuse detection, RBAC permission resolution, OAuth2 social login, and TOTP-based MFA with backup codes. - Use Case: You are building a SaaS API with web and mobile clients. Use this Skill to map all auth flows (login, refresh, logout, MFA), implement refresh token rotation that detects token theft, and enforce fine-grained permissions like "orders:delete" via FastAPI dependencies. ## Quick Start Design the authentication architecture for my multi-tenant SaaS application with Google OAuth login, role-based permissions, and MFA support.