Currently, I cannot find a way to customize the error message (“Something went wrong, please try again later.”) with either Rules, Hooks, or Actions.
Could you help show me how to do it.
Thanks.
Thanks a lot, it works now.
Now I have one more question:
Why not the error message shows signup.“email-in-use” instead of signup.“auth0-users-validation” since the monitoring log has indicated “The user already exists”?
The text of the message determines which key to use when customizing the text prompt. As shown below, for “Something went wrong, please try again later”, there are two keys. Since this is due to user validation, we use the key auth0-users-validation.
What I mean is the actual use case meets the key email-in-use (The user already exists.).
I think Auth0 should return email-in-use in this case, not auth0-users-validation.
If Auth0 returns the key email-in-use (The user already exists.), then I don’t need to customize the message of auth0-users-validation.
Note:
The use case: sign up an email which already signed up before.
The Dashboard > Monitoring Log indicates Auto0 can catch the actual error: The user already exists..
auth0-users-validation seems to be pretty broad. Is it possible that another validation error happens that is not related to username taken? If so, then whatever custom message we assign for that key will be wrong in some cases.
Looks like there’s already already a username-taken key. Why not return that key instead in the case trying to sign up with a user name that is already taken? In fact, looks like there is already an appropriate default error message associated with it, “The username provided is in use already.” Why wasn’t this used? That seems to be the way it should work by default.