- Go to Dashboard > Security > Multi-factor Auth, and click Phone Message.
- Customize your message templates, and click Save.
- Enrollment: Message sent by Auth0 during device enrollment.
- Verification: Message sent by Auth0 to verify the possession of the device.
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 ) so it can be pronounced accurately 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. |
Example
Localization
The endpoints support thex-request-language
header and you can use it to send the locale. See Multi-Language Support for details.
This is also supported in the API (POST /mfa/associate
and POST /mfa/challenge
endpoints). When it’s sent, that locale will be available in the locale
variable in the MFA SMS/voice template.
You must also select those languages in Tenant > Settings (under Supported Languages) for this to work.