Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Send User supplied Mobile OTP to be verified

Parameters

phone: string

The user's phone number WITH international prefix

token: string

token that user was sent to their mobile phone

optional
options: { redirectTo?: string; } = [UNSUPPORTED]

A URL or mobile address to send the user to after they are confirmed.

Returns

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