15 lines
518 B
TypeScript
15 lines
518 B
TypeScript
import { auth } from '../apps/admin/lib/auth'
|
|
|
|
async function main() {
|
|
const password = 'demo1234'
|
|
|
|
// Actually better-auth 1.x exports a util or hashes internally.
|
|
// An easy way to fix a user is to just update their password using the auth instance
|
|
// but since we want to strictly seed the DB, let's just generate it using the bcrypt package directly.
|
|
|
|
// For now let's just use the `better-auth` API directly if possible?
|
|
// Wait, let's look at how better auth handles hashing.
|
|
}
|
|
|
|
main()
|