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