Localize API Error Messages Returned by 3rd Party Providers
Last Updated:
Overview
When configuring a Passwordless SMS connection and a user sends an invalid phone number, the SMS provider responds with the following error message in the 'error_description' field:
status 400
{
"error": "sms_provider_error",
"error_description": "The 'To' number +1XXXXXXXX is not a valid phone number. (Code: 21211)"
}
Several other situations might cause a third-party service to return an error message due to an issue in the login flow. This article will explain whether Auth0 can localize these error messages so a translated error can be presented to the end user.
Applies To
- Passwordless SMS Connections
- Error Message
Solution
Currently, this is not supported; Auth0 will pass along whatever error message a third-party service sends without any further processing of the message itself.
Feel free to open a Feature Request on the Community Site to have this use case reviewed by the Auth0 Product Team.