Documentation navigation

Auth

Send a phone sign-in challenge

POST/auth/otp

Sends a passwordless phone sign-in challenge.

Parameters

signInWithPhoneCredentials
phonestring
The user’s phone number in international format.
attributes?JsonObject
Attributes used if a user is created.
createIfNotExists?boolean
Whether Auth may create a user.
options.emailRedirectTo?string
Redirect destination accepted by the SDK type.
options.captchaToken?string
Captcha verification token.

Returns

usernull
sessionnull
messageId?string | null