Authentication Patterns

•
6
•

Implements secure authentication and authorization systems using JWT, OAuth2, and advanced access control models.

This skill provides comprehensive, production-ready patterns for securing backend applications. It equips Claude with the ability to implement diverse authentication methods—including JSON Web Tokens (JWT) with refresh logic, API key management, and OAuth2 social logins—alongside sophisticated authorization frameworks like Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC). By incorporating security best practices such as password hashing, secure headers, and rate limiting, it ensures backend services are robust against common vulnerabilities and follow industry standards for identity management.

Características Principales

01JWT implementation with access and refresh token rotation logic
02Secure API key generation, hashing, and middleware validation
03OAuth2 integration using Passport.js for third-party social logins
04Advanced authorization models including RBAC and ABAC policies
05Security hardening with Bcrypt, Helmet, CORS, and rate limiting
066 GitHub stars

Casos de Uso

01Building a secure REST API that requires fine-grained user permissions and role management
02Implementing a multi-tenant SaaS application using JWTs and secure session storage
03Adding third-party social login providers to an existing Node.js backend service