DrizzleThe model "verification" was not found in the schema object. Please pass the schema
I just followed the installation + sveltekit guide.
Clicking the login action gives me a 500 on
http://localhost:5173/api/auth/sign-in/social
Server error is ERROR [Better Auth]: BetterAuthError [BetterAuthError: [# Drizzle Adapter]: The model "verification" was not found in the schema object. Please pass the schema directly to the adapter options.] {
cause: undefined
}
the tables exist i can query them too.
my hooks.server.ts
now it asks me to pass the schema. but drizzle schemas are usually just exported tables. theres no default export or what am i missing?Solution:Jump to solution
okay well
import * as schema from '$lib/server/db/schema';
was actually enough to fix it. im still a bit confused about the error. i dont think i made any changes to the very default setup...1 Reply
Solution
okay well
import * as schema from '$lib/server/db/schema';
was actually enough to fix it. im still a bit confused about the error. i dont think i made any changes to the very default setup