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
bekacru
bekacru•3d ago
disableSignUp
thomasmol
thomasmolOP•3d ago
Doesnt that disable signup completely through email otp?
bekacru
bekacru•3d ago
yes but there is no explicit sign up method with the email otp plugin
thomasmol
thomasmolOP•2d ago
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 🙂
bekacru
bekacru•2d ago
Oh yeah that’s doesn’t exist yet. We should add that feature Feel free to open an issue if you haven’t

Did you find this page helpful?