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...
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth's behavior
Jump to solution
3 Replies
kubas
kubasOP2mo ago
is it even possible? its really importnant for me
Solution
sebastian
sebastian2mo ago
this could be achieved with db hooks https://www.better-auth.com/docs/concepts/hooks
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth's behavior
kubas
kubasOP2mo ago
Yes! That is what I was looking for! Thanks!!!

Did you find this page helpful?