33b9076cd36e891e0b086d1fb61540e0def6ca0f
Better Auth's default id generator emits a nanoid-style string, but every id column in the schema is typed uuid. Better Auth passes its generated id explicitly on insert (bypassing the column defaultRandom), so Postgres rejected every signUp/session/verification insert with 'invalid input syntax for type uuid'. This broke live registration and the admin seed alike. Configure advanced.database.generateId to return crypto.randomUUID() so ids match the schema. Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
98.4%
CSS
1.3%
Shell
0.2%
Dockerfile
0.1%