verifyEmailOtp
Verifies a email otp
Return
OtpVerifyResult.Authenticated if the OTP was verified and a session was returned.
OtpVerifyResult.VerifiedNoSession if the session was verified but no session was returned (for example when changing the E-Mail with the "Secure email change enabled" option enabled)
Parameters
The type of the verification
The email to verify
The token used to verify
See also
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.
if the request timed out
on network related issues
Verifies an email otp token hash received via email
Return
OtpVerifyResult.Authenticated if the OTP was verified and a session was returned.
OtpVerifyResult.VerifiedNoSession if the session was verified but no session was returned (for example when changing the E-Mail with the "Secure email change enabled" option enabled)
Parameters
The type of the verification
The token hash used to verify
See also
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.
if the request timed out
on network related issues