verifyEmailOtp

abstract suspend fun verifyEmailOtp(type: OtpType.Email, email: String, token: String, captchaToken: String? = null)(source)

Verifies a email otp

Parameters

type

The type of the verification

email

The email to verify

token

The token used to verify

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


abstract suspend fun verifyEmailOtp(type: OtpType.Email, tokenHash: String, captchaToken: String? = null)(source)

Verifies a email otp token hash received via email

Parameters

type

The type of the verification

tokenHash

The token hash used to verify

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