send

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

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

Return

BaseResponse response from backend

Parameters

parameters

required to send OTP


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

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

Parameters

parameters

required to send OTP

callback

calls callback with BaseResponse response from backend