send
abstract suspend fun send(parameters: OTP.SmsOTP.Parameters): BaseResponse
Content copied to clipboard
Wraps Stytch’s SMS OTP send endpoint. Requests an SMS OTP for a user to authenticate.
Return
BaseResponse response from backend
Parameters
parameters
required to send OTP
abstract fun send(parameters: OTP.SmsOTP.Parameters, callback: (BaseResponse) -> Unit)
Content copied to clipboard
Wraps Stytch’s SMS OTP send endpoint. Requests am SMS OTP for a user to authenticate.
Parameters
parameters
required to send OTP
callback
calls callback with BaseResponse response from backend