SmsOTP

interface SmsOTP

Provides all possible ways to call SMS OTP endpoints

Types

Link copied to clipboard
data class Parameters @JvmOverloads constructor(val phoneNumber: String, val expirationMinutes: Int = DEFAULT_OTP_EXPIRATION_TIME_MINUTES, val enableAutofill: Boolean = false, val autofillSessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES, val locale: Locale? = null) : Parcelable

Data class used for wrapping parameters used with SMS OTP

Functions

Link copied to clipboard
abstract fun loginOrCreate(parameters: OTP.SmsOTP.Parameters, callback: (LoginOrCreateOTPResponse) -> Unit)

Send a one-time passcode (OTP) to a user using their phone number via SMS. If the phone number is not associated with a user already, a user will be created.

Link copied to clipboard

Send a one-time passcode (OTP) to a user using their phone number via SMS. If the phone number is not associated with a user already, a user will be created.

Link copied to clipboard
abstract suspend fun send(parameters: OTP.SmsOTP.Parameters): OTPSendResponse
abstract fun send(parameters: OTP.SmsOTP.Parameters, callback: (OTPSendResponse) -> Unit)

Send a one-time passcode (OTP) to a user's phone number via SMS. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.

Link copied to clipboard

Send a one-time passcode (OTP) to a user's phone number via SMS. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.