-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Allow newlines in SMS OTP template #6435
Copy link
Copy link
Open
Labels
authAll thing Supabase Auth relatedAll thing Supabase Auth relatedenhancementNew feature or requestNew feature or requestfrontendRelated to supabase dashboardRelated to supabase dashboardgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
authAll thing Supabase Auth relatedAll thing Supabase Auth relatedenhancementNew feature or requestNew feature or requestfrontendRelated to supabase dashboardRelated to supabase dashboardgood first issueGood for newcomersGood for newcomers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature request
Is your feature request related to a problem? Please describe.
I'm using the SMS OTP feature for a progressive web application to be used on mobiles and would like to use the WebOTP API to automatically handle the SMS. The new templating feature gets me almost there – but only almost since it does not allow newlines (\n).
Describe the solution you'd like
To conform to the WebOTP API, the SMS needs to contain at least one newline, see e.g. here or here. The template should allow for newlines.
Describe alternatives you've considered
There currently is no alternative to WebOTP for automated SMS OTP handling.
Additional context
I've tried to sneak a newline into the template via "\n" and "\\n", but to no avail.