Custom error when user has a Google account but no credentials account.

Hey all! I have a small problem with my app.
How can I show the user that they can't log in with email/password because they already created an account using Google?
Thanks!
Solution
this could be achieved with db hooks
https://www.better-auth.com/docs/concepts/hooks
Better Auth Hooks let you customize BetterAuth's behavior
Was this page helpful?