Argument `token` is missing.
Hey, has anyone managet to get better-auth working with Prisma? i'm migrating from Authjs (next auth) to better-auth and i used the npx @better-auth/cli generate as well to create the schema and everything but i keep getting this error, even though database is completely synced and prisma client is generated:
4 Replies
you have token field in your verification table that's non nullable. you should remove it.
remove the token field or make it optional?
i would have assumed the npx @better-auth/cli generate would already create the exact schema it needs to work
the cli doesn't generate that field
unless you have added it as additonal field
okay, i created a separate clean project and ran the cli tool there to get the schema it needs (this was attempt #2 this way) and now i got the schema it needed and it works. Wish the website had the schema it needs just there to copy/paste so i could know exactly what it needs rather than hoping the cli tool worked. I used the cli tool in my main project as well so i got some messed up schemas