What problem does it solve?
Authentication and authorization are foundational for protecting user data and resources in modern apps; this skill provides a structured approach to implementing JWT, OAuth2, sessions, MFA, social login, and RBAC to secure sign-in and access across services.
Core Features & Use Cases
- JWT for stateless API authentication and ID tokens; supports short-lived access tokens and refresh tokens with rotation.
- Session-based Web authentication for traditional server-rendered apps with server-side state management.
- OAuth2 / Social Login to enable sign-in with Google, GitHub, and other providers.
- MFA and Passkeys support options to strengthen login security.
- RBAC and permission checks to enforce fine-grained access control across resources.
- Token rotation, httpOnly refresh cookies, and middleware for requireAuth and requirePermission.
- Guidance on choosing managed providers (Clerk, Supabase Auth, Auth0, NextAuth) and when to self-host.
Quick Start
Configure a secure authentication flow by selecting JWT and session strategies, then implement login, refresh, and RBAC middleware.