Email OTP SignUp

Hello, we're working on implementing the Email OTP flow and have a couple questions: - Is there a way to create a user while disableSignUp is enabled? I enabled it because we want to manually sign up new users only via an admin page, and want to block login attempts for unregistered emails. However there doesn't seem to be any other way to sing up a user with this plugin. - The only workaround I have found is to also enable the emailAndPassword flow, and then create users that way with a very random password that will never get used. And now that the user exists, the OTP flow seems to work as expected. Could this cause any issues or does it seem like a safe approach?
Solution:
if you have an admin plugin you still can create an new user as well if you want - https://www.better-auth.com/docs/plugins/admin#create-user
Admin | Better Auth
Admin plugin for Better Auth
Jump to solution
2 Replies
Solution
KiNFiSH
KiNFiSH2w ago
if you have an admin plugin you still can create an new user as well if you want - https://www.better-auth.com/docs/plugins/admin#create-user
Admin | Better Auth
Admin plugin for Better Auth
bzrk
bzrkOP7d ago
Thank you, I think this is what we need to use

Did you find this page helpful?