Skip to content

Commit 3e9decf

Browse files
committed
docs(auth): SMS text customisation & localisation section (#2815)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013LXUXU66dBaP3SSG4ZVtuH
1 parent 93d04a3 commit 3e9decf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎content/docs/permissions/authentication.mdx‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,18 @@ when SMS is deliverable: the created account receives a **credential-free
353353
invitation SMS** and the employee completes first sign-in via phone OTP, then
354354
sets their own password.
355355

356+
#### SMS text customisation & localisation
357+
358+
The OTP and invitation bodies are localised and tenant-customisable: a
359+
`sys_notification_template` row for `(auth.phone_otp | auth.phone_invite,
360+
channel 'sms', locale)` wins — built-in English and Chinese rows are seeded
361+
once (never overwriting your edits) and can be changed under Setup →
362+
Notification Templates. The locale follows the deployment default
363+
(`localization.locale` setting) with a `zh-CN → zh → en` fallback chain;
364+
holes are `{{code}}`, `{{appName}}`, `{{minutes}}` (OTP) and `{{appName}}`,
365+
`{{baseUrl}}` (invitation). Template lookups are best-effort — an outage
366+
falls back to the built-in text and never blocks an OTP send.
367+
356368
---
357369

358370
## OAuth Providers

0 commit comments

Comments
 (0)