resendPhone
abstract suspend fun resendPhone(type: OtpType.Phone, phone: String, captchaToken: String? = null)(source)
Resends an existing SMS OTP or phone change OTP.
Parameters
type
The phone otp type
phone
The phone to resend the otp to
captchaToken
The captcha token to use
Throws
or one of its subclasses if receiving an error response. If the error response contains a error code, an AuthRestException will be thrown which can be used to easier identify the problem.
HttpRequestTimeoutException
if the request timed out
on network related issues