Unable to create plugin

I'm currently using admin plugin with phone plugin , i need a way to setup custom endpoints that enables admins to create users with a phoneNumber without otp and a role , i know it is going to be possible with custom plugin and i can directly tap into the db instance of better auth , but unfortunately , when i try to setup , there is a issue that i am encountering
Solution
This did work once i made the function async
Was this page helpful?