custom error message
hello i get the error message on my login page with better auth
"Invalid email or password" but how to customiza the message it''s generated by better-auth ?
3 Replies
https://www.better-auth.com/docs/concepts/client
on handling erros
Client | Better Auth
Better Auth client library for authentication.
how to print the authClient.$ERROR_CODES
https://www.answeroverflow.com/m/1399850852973547682
API Error codes - Better Auth
Thanks for a great library! I want to display error messages in another language than English and am therefore interested to switch based on the
error.body.code. So far I have come across the USER_ALREADY_EXISTS code, but doing this manually is tedious - is there any list or reference for all possible error messages? All I can find is this, ...?