Skip to content

Allow newlines in SMS OTP template #6435

@fbarthez

Description

@fbarthez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authAll thing Supabase Auth relatedenhancementNew feature or requestfrontendRelated to supabase dashboardgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions