how to customize/translate BASE_ERROR_CODES
and how to replace or customize the error page of better auth?
Solution:
Jump to solution
and how to replace or customize the error page of better auth?You can pass this to your better-auth config to change the error page: ```ts onAPIError: { errorURL: "/my-err-url"...

2 Replies
Solution
and how to replace or customize the error page of better auth?You can pass this to your better-auth config to change the error page: Regarding how to customize/translate error codes, we do give you a way to infer the errors, but it's up to you to translate them:

excellent thank you, great work!