概要
This skill provides comprehensive guidance and boilerplate for building robust security layers in modern applications. It covers essential patterns including stateless JWT authentication with refresh token flows, stateful session management via Redis, and delegated authentication through OAuth2/Passport.js. Beyond identity verification, it facilitates granular access control through Role-Based (RBAC) and Permission-Based (PBAC) models, helping developers migrate auth systems or debug complex security issues with production-grade code samples and standardized middleware architecture.