What problem does it solve? Building secure authentication from scratch is error-prone, and mistakes in session handling, token rotation, or OAuth flows create serious vulnerabilities. This Skill provides production-oriented TypeScript patterns for every common auth mechanism so you implement them correctly the first time. ## Core Features & Use Cases - Session & JWT Auth: Redis-backed session storage with httpOnly cookies, plus short-lived access tokens with refresh token rotation for mobile and API clients. - OAuth2/OIDC & Passwordless: Google OAuth flow with state validation, magic link sign-in, email verification, and password reset with session revocation. - MFA & RBAC: TOTP-based multi-factor enrollment and a permission matrix for role-based access control middleware. - Use Case: You need to add Google sign-in plus MFA to an existing app. Load this Skill to get the OAuth callback handler, session creation, and TOTP verification code wired together with a security checklist. ## Quick Start Ask the agent to implement session-based authentication with JWT refresh tokens and Google OAuth for your API.