// the find
saasykits/nextjs-sessionauth-template
Next.js starter template featuring session-based auth, drizzle-orm, tailwind, shadcn ui, stripe, react-email etc.
A Next.js starter template wiring together Lucia auth, tRPC, Drizzle ORM, Stripe subscriptions, and React Email into a single deployable base. Aimed at developers who need email/password auth in Next.js without NextAuth's deliberate friction around credentials. Saves a week of plumbing; ships with E2E tests via Playwright.
Lucia is a sensible choice here — it gives you real control over session management without the magic-box problems of NextAuth. The Drizzle schema is typed end-to-end, so you're not guessing what columns exist. E2E tests actually run against a built production bundle, not just dev mode, which catches a real class of SSR bugs. The devcontainer setup with a pre-configured Postgres means zero environment fighting to get started.
Lucia v3 deprecated itself in early 2025 — the maintainer archived the project and recommends migrating away, so this template is already building on a dead foundation. Last commit was January 2025 and the roadmap items (update password, admin dashboard, RBAC) are still open checkboxes, meaning you'll be writing that code yourself. The 'posts' CRUD domain in the dashboard is just placeholder scaffolding that you'll rip out, but the tRPC router and schema are tangled into it, so untangling adds friction before you can build your actual feature. No rate limiting on auth endpoints by default — the README mentions an old Upstash branch but it's commented out.