Auth Implementation Patterns

•
81
•

Implements secure authentication and authorization systems using industry-standard patterns like JWT, OAuth2, and RBAC.

This skill equips Claude with the expertise to design and implement robust security architectures for modern web applications and APIs. It provides detailed implementation patterns for token-based authentication (JWT) with refresh token flows, stateful session management using Redis, and social logins via OAuth2/Passport.js. Beyond simple login logic, it guides the creation of sophisticated authorization models, including Role-Based Access Control (RBAC) and permission-based systems, ensuring that your application's security is both scalable and compliant with modern best practices.

Características Principales

01Scalable Role-Based Access Control (RBAC) and permission-based authorization middleware.
02Social login integration patterns for Google and GitHub using Passport.js.
03Secure session-based authentication patterns using Express and Redis storage.
0481 GitHub stars
05Comprehensive JWT implementation with access and refresh token rotation logic.
06Best practices for secure cookie management, password hashing, and token revocation.

Casos de Uso

01Migrating legacy session-based systems to modern OAuth2/OIDC flows.
02Implementing enterprise-grade multi-tenant authorization and user roles.
03Securing REST or GraphQL APIs with stateless JWT authentication.