Installation

Create database tables:

bun x auth@latest migrate

Load env files

To overwrite the default .env values just create one of the following files:

.env.local
.env.{NODE_ENV}
.env.{NODE_ENV}.local

Typical structure:

.env                  shared defaults
.env.local            local machine secrets
.env.production       production defaults
.env.production.local production secrets

OpenAPI

Better Auth endpoint reference: http://localhost:3001/api/auth/reference


This site uses Just the Docs, a documentation theme for Jekyll.