SMS

interface SMS

Provides all possible ways to call SMS OTP endpoints

Types

Link copied to clipboard
data class AuthenticateParameters @JvmOverloads constructor(val organizationId: String, val memberId: String, val code: String, val setMFAEnrollment: SetMFAEnrollment? = null, val sessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES)

A data class wrapping the parameters needed to authenticate an SMS OTP

Link copied to clipboard
data class SendParameters @JvmOverloads constructor(val organizationId: String, val memberId: String, val mfaPhoneNumber: String? = null, val locale: Locale? = null, val enableAutofill: Boolean = false, val autofillSessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES)

A data class wrapping the parameters needed to send an SMS OTP

Functions

Link copied to clipboard

Authenticate a one-time passcode (OTP) sent to a user via SMS.

Link copied to clipboard

Authenticate a one-time passcode (OTP) sent to a user via SMS.

Link copied to clipboard
abstract suspend fun send(parameters: OTP.SMS.SendParameters): BasicResponse
abstract fun send(parameters: OTP.SMS.SendParameters, callback: (BasicResponse) -> Unit)

Send a one-time passcode (OTP) to a user using their phone number via SMS.

Link copied to clipboard

Send a one-time passcode (OTP) to a user using their phone number via SMS.