Missing 'account' table breaks Better Auth sign-up flow #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
After fixing the email_verified schema (#9), sign-up now creates the user record successfully but returns 500 because Better Auth expects an
accounttable to store credential records.Error
Impact
userstable (confirmed working)sessionstable)Fix
Add the
accounttable to the Drizzle schema and create a migration. Better Auth requires these core tables:users(exists)sessions(exists)accounts(MISSING — stores OAuth/credential providers)verifications(optional — for email verification)Schema should follow Better Auth conventions. See: https://www.better-auth.com/docs/concepts/database
Severity: High
Sign-up creates orphaned users with no session. Full auth flow is broken.