Authentication & Authorization Patterns

•
81
•

Implements industry-standard security protocols including JWT, OAuth2, and role-based access control for secure application development.

This skill provides Claude with specialized knowledge to architect and implement robust authentication and authorization systems. It covers modern patterns such as stateless JWT authentication, stateful session management with Redis, third-party social login through OAuth2/Passport.js, and sophisticated access control models like RBAC and permission-based logic. It is an essential resource for developers building secure APIs, migrating legacy auth systems, or implementing multi-tenant security architectures with production-ready code patterns.

主要功能

01Stateful session management patterns using Express and Redis
02Secure middleware patterns for API protection and identity verification
0381 GitHub stars
04JWT implementation with refresh token rotation and revocation strategies
05Granular Role-Based Access Control (RBAC) and Permission-based authorization
06OAuth2 and social login integration using Passport.js

使用场景

01Refactoring a monolithic session-based app to a scalable JWT architecture
02Designing a secure backend for a web or mobile application from scratch
03Implementing complex permission hierarchies for enterprise-grade SaaS platforms