Legal Consent Hub
Setup
- Create
.envfile with these variables:BETTER_AUTH_URL=http://localhost:3000 BETTER_AUTH_SECRET=YOUR_SECRET - Generate database schema:
npx @better-auth/cli generate - Migrate schema:
npx @better-auth/cli migrate
Common errors
better-auth/cli generate
Couldn't read your auth config. Error: Could not locate the bindings file. Tried:
Solution: I was able to resolve by running npx node-gyp rebuild in 'node_modules/better-sqlite3'