Admin-plugin. Is there an elegant way to create first app admin?

Possibly dumb question but for the admin plugin is there an elegant way to create the first admin in your app. I know you can 1. manually go check their id then add it to the better auth adminUserIds setting or 2. sign them up on db bootup and write a query in your db of choice to change their role, but 1. requires you to patch the code right after you just deployed it and 2. brakes the nice db encapsulation better auth has going on. Neither are bad options, but it feels off. Like I'm potential missing something. Like is there a backend only method that could just directly create the first admin without already being an admin or something?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?