How to Customize Text for the Error Prompts on the New Universal Login Template

Problem Statement:

We want to customize the text of the error prompt. For example, if the user credentials are incorrect in the new Universal Login widget, we want to customize the error message.

Solution:

The New Universal Login templates can be customized via the Auth0 Management API.

For the above use case, we can make a PUT request to the endpoint

https://{domain}/api/v2/prompts/login/custom-text/en

with body scripts:

{
"login":{
"wrong-credentials":"You have entered wrong email/password, please try again"
}
}

To revert the change, please send the same request with empty body scripts.

{
}

References:

https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#using-the-auth0-cli

1 Like