Authentication & Authorization Patterns
Implements secure authentication and authorization flows including JWT, OAuth2 with PKCE, and Role-Based Access Control.
This skill equips Claude with specialized knowledge to implement industry-standard authentication and authorization patterns. It provides battle-tested code snippets for JWT access and refresh token management, secure middleware, and OAuth2 Authorization Code flows with PKCE. Beyond implementation, the skill guides developers through robust Role-Based Access Control (RBAC) modeling and highlights critical security anti-patterns—such as unsafe token storage or weak password hashing—to ensure applications are built with a security-first mindset and follow modern best practices.
Key Features
01OAuth2 Authorization Code Flow implementation with PKCE for public clients
021 GitHub stars
03Secure authentication and authorization middleware for Node.js/TypeScript
04Granular Role-Based Access Control (RBAC) with resource-level permissions
05Comprehensive security audit checklist and anti-pattern prevention guidance
06JWT access and refresh token management with secure cookie storage
Use Cases
01Building a secure backend API with short-lived tokens and refresh logic
02Integrating third-party OAuth2 providers using the secure PKCE flow
03Designing a multi-tenant permission system using a scalable RBAC model