概要
This skill provides comprehensive guidance and implementation patterns for building robust authentication and authorization systems in backend applications. It covers essential strategies including stateless JWT tokens with refresh flows, stateful Redis-backed session management, social login via OAuth2, and sophisticated access control models like Role-Based Access Control (RBAC). Whether you are securing a REST API, migrating an existing auth system, or debugging security vulnerabilities, this skill offers production-grade code examples and best practices to ensure user data remains protected and systems scale efficiently.