"USERNAME_IS_ALREADY_TAKEN_PLEASE_TRY_ANOTHER” error code is not included in authClient.$ERROR_CODE.

"USERNAME_IS_ALREADY_TAKEN_PLEASE_TRY_ANOTHER” error code is not included in authClient.$ERROR_CODE. Is this a specification? There is no other "COULDNT_UPDATE_YOUR_EMAIL".
10 Replies
Lucas
LucasOP3mo ago
i need help
Ping
Ping3mo ago
Hey it's available for me. Can I see your auth config?
No description
Lucas
LucasOP3mo ago
https://www.better-auth.com/docs/concepts/client#error-codes I created a function to get the error message, but “USERNAME_IS_ALREADY_TAKEN_PLEASE_TRY_ANOTHER” was not defined.
Client | Better Auth
Better Auth client library for authentication.
Lucas
LucasOP3mo ago
using next.js
Lucas
LucasOP3mo ago
No description
Lucas
LucasOP3mo ago
No description
Lucas
LucasOP3mo ago
The same was true for betterAuth. @Ping
Ping
Ping3mo ago
@Lucas the USERNAME_IS_ALREADY_TAKEN is USERNAME_IS_ALREADY_TAKEN_PLEASE_TRY_ANOTHER
Ping
Ping3mo ago
No description
Lucas
LucasOP3mo ago
Should I verify this with _PLEASE_TRY_ANOTHER removed?

Did you find this page helpful?