Roncho
BABetter Auth
•Created by Roncho on 3/14/2025 in #help
How to seed users?
I want to seed some users, and I have a json with user names, emails, passwords. this is going to be a backend script that I run manually. I wonder whats the best way, currently all failing.
tired await authClient.admin.createUser, and that is failing, I guess because it only works if the users who runs this is an admin user. and at this stage i'm running this as a script, with no user.
also tried await auth.api.createUser , and that also failed with status 'unauthorized'. any idea?
8 replies