verify Phone Otp
abstract suspend fun verifyPhoneOtp(type: OtpType.Phone, phone: String, token: String, captchaToken: String? = null)(source)
Verifies a phone/sms otp
Parameters
type
The type of the verification
token
The otp to verify
phone
The phone number the token was sent to
Throws
Rest Exception
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.
Http Request Timeout Exception
if the request timed out
Http Request Exception
on network related issues