Auth starter template

Next.js + Better Auth

A clean authentication starter kit. Configure your environment variables and start building — social login, email/password auth, and a dashboard are ready to go.

Next.jsBetter AuthSupabaseshadcn/uiTypeScript
Features

What's included

Multiple Auth Methods

Email/password and OAuth social login — ships with GitHub, Google, Discord, and Slack. Easy to add more providers following the same pattern.

Secure by Default

Server-side session validation, protected routes with automatic redirect, and cookie management via Better Auth.

Clean Integration

A clear, minimal example of how Next.js and Better Auth work together — well-structured code you can read, understand, and build on.