- Go to Dashboard > Security > Multi-factor Auth, and click Phone Message.
- In the Enrollment Template or Verification Template section, customize your message.
- Click Save.
Syntax
Liquid syntax is the supported templating engine you use when accessing user attributes in SMS templates. The following attributes are available:| Attribute | Description |
|---|---|
message_type | Indicates which kind of message is sent: sms or voice. |
code | Enrollment/verification code. When sending voice messages, variable values are separated by dots between the digits (1.2.3.4.5) for accurate pronunciation by voice messaging providers. |
locale | For Universal Login or MFA API. Designates the language. |
requestInfo.lang | For Classic Login localization. Browser accept-language header. For example: es-AR,es;q=8.0, en-US,en. |
tenant.friendlyName | The Friendly Name set in Dashboard > Tenant Settings. |
custom_domain.domain | The tenant’s domain name. |
custom_domain.domain_metadata | The custom domain’s metadata fields (as key-value pairs). |
Localization
In the Auth0 Authentication API, the Get Code or Link endpoint, MFA Challenge request endpoint, and MFA Add an authenticator endpoint support thex-request-language header.
To use it, set your supported languages in Tenant > Settings (under Supported Languages). When the x-request-lanuage header is sent, that locale is available in the locale variable in the MFA phone message templates. See Passwordless Multi-Language Support for details.