home / skills / andrelandgraf / fullstackrecipes / better-auth-setup
This skill helps you bootstrap secure authentication using Better Auth with Drizzle ORM and Neon Postgres for rapid fullstack apps.
npx playbooks add skill andrelandgraf/fullstackrecipes --skill better-auth-setupReview the files below or copy the command above to add this skill to your agents.
---
name: better-auth-setup
description: Add user authentication using Better Auth with Drizzle ORM and Neon Postgres. Base setup with email/password authentication.
---
# Better Auth Setup
To set up Better Auth Setup, refer to the fullstackrecipes MCP server resource:
**Resource URI:** `recipe://fullstackrecipes.com/better-auth-setup`
If the MCP server is not configured, fetch the recipe directly:
```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/better-auth-setup
```
This skill adds user authentication to a TypeScript full-stack app using Better Auth with Drizzle ORM and Neon Postgres. It provides a base setup for email/password authentication, integration points for session management, and database models ready for production. The intent is a clear, repeatable pattern you can drop into existing Shadcn-style projects.
The skill scaffolds the Drizzle ORM schema and migrations for users, and wires Better Auth handlers to authenticate via email and password. It configures Neon Postgres connection settings and session storage, and exposes simple API routes for sign-up, sign-in, sign-out, and password management. The code is modular so you can extend it with OAuth providers, multi-factor auth, or custom fields.
Does this support OAuth providers out of the box?
The base setup focuses on email/password, but the modular handlers make it straightforward to add OAuth providers.
Can I use a different Postgres host than Neon?
Yes. The connection layer is configurable; swap Neon connection strings for any Postgres-compatible host.