Better AuthBA
Better Auth•11mo ago
Jimmy

How do I seed users for development env?

Hello 👋 -- The title basically says it. I'm using prisma as my database adapter. How do I correctly seed users for development purposes? Do I import the auth and use auth.api.createUser({...}) or should I use my prisma client to directly insert? I have email verification enabled and I obviously want to skip that for this purpose. What's the idiomatic approach for this? Thanks in advance!
Solution
I think I'm going to punt and go back to using prisma to directly insert. Do you know how to correctly hash the password?
Was this page helpful?