<Brendon/>
<Brendon/>
BABetter Auth
Created by <Brendon/> on 3/4/2025 in #help
Registration Error
Solution: database: drizzleAdapter(db, { provider: "pg", schema: { user account session verification }, }), add schema in the adapter conifg pleas update in the documentation
5 replies
BABetter Auth
Created by <Brendon/> on 3/4/2025 in #help
Registration Error
my schema: export const user = pgTable("user", { id: text("id").primaryKey(), name: text("name").notNull(), email: text("email").notNull().unique(), emailVerified: boolean("email_verified").notNull(), image: text("image"), createdAt: timestamp("created_at").notNull(), updatedAt: timestamp("updated_at").notNull(), });
5 replies
BABetter Auth
Created by <Brendon/> on 3/4/2025 in #help
Registration Error
error log: POST /api/auth/sign-up/email 500 in 65ms SERVER_ERROR: [Error [BetterAuthError]: [# Drizzle Adapter]: The model "user" was not found in the schema object. Please pass the schema directly to the adapter options.] { cause: undefined }
5 replies