Advanced Authentication Flows

•
1
•

Standardizes secure authentication and authorization patterns across any tech stack using universal security best practices.

This skill provides Claude with a rigorous framework for implementing and reviewing authentication and authorization logic regardless of the programming language or framework. It enforces critical security standards such as dual-guard composition, secure refresh token rotation with family tracking, server-side session invalidation, and OAuth 2.0 PKCE implementation. By ensuring access tokens remain short-lived and error messages stay generic to prevent user enumeration, this skill transforms Claude into a security-focused architect for protected routes and identity management.

Key Features

011 GitHub stars
02Mandatory Guard Composition (Authentication + Authorization separation)
03Server-side logout and session invalidation standards
04Strict token expiry limits and OAuth PKCE enforcement
05Secure error handling to prevent user enumeration and data leaks
06Refresh Token Rotation with automatic reuse detection and revocation

Use Cases

01Implementing a secure JWT-based authentication system in NestJS or Next.js
02Reviewing existing codebases for common authentication vulnerabilities and logic gaps
03Setting up robust OAuth 2.0 flows for mobile or single-page applications