Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/gotrue/src/index.ts>GoTrueApi#sendMobileOTP

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueApi.prototype.sendMobileOTP
Re-export
import { GoTrueApi } from "https://deno.land/x/gotrue@3.0.0/src/index.ts";

Sends a mobile OTP via SMS. Will register the account if it doesn't already exist

Parameters

phone: string

The user's phone number WITH international prefix

Returns

Promise<{ data: { } | null; error: ApiError | null; }>