bzrk
BABetter Auth
•Created by bzrk on 4/11/2025 in #help
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?5 replies