Auth Implementation Patterns
Implements secure, scalable authentication and authorization systems using industry-standard patterns like JWT, OAuth2, and RBAC.
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.
主要功能
01Stateful session management with Redis integration
02JWT and Refresh Token implementation patterns
03Role-Based (RBAC) and Permission-Based Access Control
04Standardized security middleware for Node.js environments
05OAuth2 and Social Login integration using Passport.js
060 GitHub stars
使用场景
01Building a secure SaaS platform with multi-tier user permissions
02Integrating Google or GitHub social login into an existing application
03Migrating from stateful sessions to stateless JWT-based authentication