Parameters

data class Parameters(val phoneNumber: String, val expirationMinutes: UInt = DEFAULT_OTP_EXPIRATION_TIME_MINUTES)

Data class used for wrapping parameters used with WhatsApp OTP

Constructors

Link copied to clipboard
fun Parameters(phoneNumber: String, expirationMinutes: UInt = DEFAULT_OTP_EXPIRATION_TIME_MINUTES)

Properties

Link copied to clipboard
val expirationMinutes: UInt

indicates how long the OTP should last before it expires

Link copied to clipboard
val phoneNumber: String

the number the OTP code should be sent to via WhatsApp, in E.164 format (i.e. +1XXXXXXXXXX)