Can’t find client plugins
Hello. I just can’t find any client-side plugins. I just tried do import OTP plugin but i didnt find it.
Can someone help me? please.
I reinstalled all the node modules and the better auth



13 Replies
You should import plugins from "better-auth/plugins"
Ill try again, thank you
I only have the backend plugin

Client plugins are under
better-auth/client/plugins:
Sharing my config:
Thanks man, it was a vs code bug!
@Dyl
Do you know why this method is not throwing an error when it doenst find any user? Because I tried to send an "forgot-password" OTP to an user that doesn't exists in the database and it returns me

and the error object is null

Because it creates the user, you need to set
disableSignUp to true
https://www.better-auth.com/docs/plugins/email-otp#sign-in-with-otpEmail OTP | Better Auth
Email OTP plugin for Better Auth.
It's shown in the notes. Also, you can ask @Better Auth to answer basic questions like this, it's better to do that before you bug other people 🙂
Hi there! It sounds like the answer you need is already noted in our documentation. For basic questions like this, you can also reach out to @Better Auth for a quick answer [1]. If you need any more details or have further inquiries about Better Auth’s features, feel free to ask!
Sources:
[1] Stripe | Better Auth
Stripe | Better Auth
Stripe plugin for Better Auth to manage subscriptions and payments.
I believe #development is kind of spam channel dedicated for this
Wait nvm, this is wrong? And yes, docs are unclear here
Found the relevant code and it's... expected behaviour? The user is not created, my bad. Got mislead by the
opts.disableSignUp, sorry
Anyways it seems if you enable this option you will see the error message
Maybe there is some reason for this, maybe this is a bug from an oversight, idk
Returning an error here would leak information about whether this user exists to the calling client, but then why is it allowed when opts.disableSignUp is true?Gonna try it
Thanks a lot!!