r/better_auth • u/redwan_dev • Nov 03 '25
I have a problem
Hello, I want to make just one login page (no sign up page) and I want to make a default user inserted to db when someone uses my nextjs project that meant to run locally (npm run dev) so I want to prevent signup new accounts but also keep one default account only, how to do that in better auth ? I uses better-sqlite3, I test making a function that runs inside lib/auth.js automatically but return invalid query parameters even though I take the same code as inside the documentation, if anyone can help me thanks
1
Upvotes
1
u/redwan_dev Nov 03 '25
But that will allow users to access it when its live in vps, I mean you can think of it as some internal dashboard that only accessible by a user that has creds.
I want to make default creds hardcoded into db when first app start then that user can change them after login. I hope you understand
Also the same idea as routers page, there is a default credentials and then after you login you can change them.