What problem does it solve? Setting up authentication in a Next.js application involves many moving parts: session management, JWT tokens, route protection, and client-server integration. This Skill provides tested configuration patterns and code examples for implementing authentication with Better Auth, reducing trial-and-error setup. ## Core Features & Use Cases - Server and Client Setup: Configure Better Auth with database adapters, email/password authentication, and create typed auth clients for React components. - JWT and Bearer Tokens: Generate, sign, verify, and decode JWT tokens with configurable algorithms, expiration, issuers, and custom claims. - Next.js 16 Integration: Protect routes with middleware, validate sessions in Server Components, and secure API routes with token verification. - Use Case: You are building a Next.js dashboard that requires login. Use this Skill to set up email/password sign-in, protect /dashboard routes via middleware, and issue JWT tokens for your API endpoints. ## Quick Start Set up Better Auth in my Next.js 16 app with email/password login, JWT tokens, and middleware protection for the dashboard routes.