diff --git a/src/db/seed.ts b/src/db/seed.ts index aacd633..b582440 100644 --- a/src/db/seed.ts +++ b/src/db/seed.ts @@ -1,14 +1,7 @@ import { db } from './index'; import { users, accounts } from './schema'; import { eq } from 'drizzle-orm'; - -// Hash password using the same method as BetterAuth (bcrypt via Bun) -async function hashPassword(password: string): Promise { - return await Bun.password.hash(password, { - algorithm: 'bcrypt', - cost: 10, - }); -} +import { hashPassword } from 'better-auth/crypto'; async function seed() { const testEmail = 'test@test.com';