send
abstract suspend fun send(parameters: OTP.WhatsAppOTP.Parameters): BaseResponse
Content copied to clipboard
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)
Content copied to clipboard
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