loginOrCreate
abstract suspend fun loginOrCreate(parameters: OTP.WhatsAppOTP.Parameters): LoginOrCreateOTPResponse
Send a one-time passcode (OTP) to a user using their phone number via WhatsApp. If the phone number is not associated with a user already, a user will be created.
Return
Parameters
parameters
required to receive a WhatsApp OTP
abstract fun loginOrCreate(parameters: OTP.WhatsAppOTP.Parameters, callback: (LoginOrCreateOTPResponse) -> Unit)
Send a one-time passcode (OTP) to a user using their phone number via WhatsApp. If the phone number is not associated with a user already, a user will be created.
Parameters
parameters
required to receive a WhatsApp OTP
callback
a callback that receives a LoginOrCreateOTPResponse