Better Auth × shadcn/ui × TanStack Start

A polished auth starter with a protected admin dashboard.

Email/password auth, server-side route protection, SQLite persistence, and shadcn-style primitives are wired together and ready to extend.

Better Auth

Real auth endpoints mounted at /api/auth/$ with secure cookies.

Protected Routes

Dashboard access is checked by a TanStack Start server function.

SQLite Persistence

Local better-sqlite3 storage keeps demo users and sessions durable.

shadcn Primitives

Button, input, label, and card primitives follow shadcn composition.

Demo credentials

Username admin maps to admin@example.com; password is Password123!.