Is there a way to Disable Implicit Sign Up when using email OTP plugin?
Essentially similar to the disable implicit sign up option for Oauth, but for email otp. https://www.better-auth.com/docs/concepts/oauth#other-provider-configurations
OAuth | Better Auth
How Better Auth handles OAuth
5 Replies
disableSignUp
Doesnt that disable signup completely through email otp?
yes but there is no explicit sign up method with the email otp plugin
yes exactly, so i'd want to block signups but set a flag when i do, similar how this is done with the oauth integrations with
disableImplicitSignUp
set to true and then doing requestSignUp: true,
when doing a signup.
I now have a manual implementation by passing a simple 'sign-in' header and checking if the user already exists in a before hook
works fine 🙂Oh yeah that’s doesn’t exist yet. We should add that feature
Feel free to open an issue if you haven’t