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
abstract suspend fun authenticate(parameters: OTP.SMS.AuthenticateParameters): SMSAuthenticateResponse
abstract fun authenticate(parameters: OTP.SMS.AuthenticateParameters, callback: (SMSAuthenticateResponse) -> Unit)
Authenticate a one-time passcode (OTP) sent to a user via SMS.
Link copied to clipboard
abstract fun authenticateCompletable(parameters: OTP.SMS.AuthenticateParameters): CompletableFuture<SMSAuthenticateResponse>
Authenticate a one-time passcode (OTP) sent to a user via SMS.
Link copied to clipboard
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.