[Admin Plugin] Default User logic
greetings, I started developing with nextjs a little ago and found NextAuth to be a pain, better-auth is by that, a lot better but one thing i cant get my head around is a default admin user. i made my site so that users can register themselves and login, but if i have no users, then no one can "become" admin or other roles becaues everyone who registers is only a "user" not an admin. Is there a way where i can say "first user who registers becomes admin" in some way? i am building a small non public facing app using only email+password and no social logins
0 Replies