auth - Set up better-auth authentication for a Next.js app
Sets up better-auth with email/password, OAuth providers, role-based access, account management, sessions, and Drizzle ORM integration.
Tags
Updated: 2026-12-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure better-auth server
- Create authentication client
- Add protected route helpers
- Configure OAuth providers
- Manage user accounts
- Protect application routes
- Create authentication UI
- Integrate Drizzle ORM
Inputs
- Next.js project structure
- Authentication environment variables
- PostgreSQL database connection
- OAuth client credentials
- Email templates
- Email sending function
Outputs
- Authentication configuration files
- Authentication client and route helpers
- Authentication API route
- Drizzle database schema and configuration
- Sign-in and sign-up pages
- Account management pages
- Protected application routes
- Authentication environment configuration
Requirements
- Running Docker PostgreSQL container
- Completed env-config skill
- Bun package manager
- better-auth dependencies
- Drizzle ORM dependencies
