send

abstract suspend fun send(parameters: OTP.WhatsAppOTP.Parameters): BaseResponse

Wraps Stytch’s WhatsApp OTP send endpoint. Requests an WhatsApp OTP for a user to authenticate.

Return

BaseResponse response from backend

Parameters

parameters

required to send OTP


abstract fun send(parameters: OTP.WhatsAppOTP.Parameters, callback: (BaseResponse) -> Unit)

Wraps Stytch’s WhatsApp OTP send endpoint. Requests a WhatsApp OTP for a user to authenticate.

Parameters

parameters

required to send OTP

callback

calls callback with BaseResponse response from backend