Authentication & Authorization
Implements secure modern authentication patterns, token rotation, OAuth 2.0 with PKCE, server sessions, and WebAuthn passkeys.
The Authentication & Authorization skill equips Claude Code with enterprise-grade security rules and implementation patterns for modern web architectures. It provides battle-tested guidance across token and session models, httpOnly cookie storage with __Host- prefixes, Argon2id password hashing, JWT validation with jose, refresh token rotation with reuse detection, and MFA/TOTP setup. Developers can use this skill when building or auditing authentication flows in Next.js, React SPAs, and full-stack APIs to prevent vulnerabilities such as XSS token theft, CSRF attacks, and unauthorized credential reuse.
主要功能
011 GitHub stars
02Secure credential storage via httpOnly cookies with __Host- prefixes and strict SameSite rules
03Support for multi-factor authentication (TOTP) and passwordless WebAuthn passkeys
04Refresh token rotation with automated family reuse detection and revocation
05Modern password hashing using Argon2id and secure timed token reset flows
06OAuth 2.0 and OIDC integration featuring mandatory PKCE protection
使用场景
01Implementing OAuth 2.0 authorization code flows with PKCE for secure public clients
02Upgrading legacy authentication systems to modern standards with Argon2id, WebAuthn, and Redis sessions
03Configuring secure session and JWT authentication for Next.js SSR and single-page applications