I have disabled signup for magic link (and its my only authentication method) but now I want to manually sign up an email via the backend.
I am trying to do this with auth.api.signUpEmail, but it 1) Requires a password to be set even though its not in the auth schema 2) Doesnt give the additionalFields in the type for signUpEmail body either, which are in the schema, if the input is set to false (because I dont want people updating their role or address)
How should I handle this? imo it would make more sense that if input is set to false the backend part of better-auth (auth.api) could set this while authClient (client side) cant.
Solution
After using the admin plugin with betterauth, I can use