verifyCode
suspend fun SignUp.verifyCode(code: String, type: VerificationType): ClerkResult<SignUp, ClerkErrorResponse>
Verifies with the provided code and type.
Type is required since multiple verifications can be active during sign-up (e.g., both email and phone verifications).
Return
A ClerkResult containing the updated SignUp object on success, or a ClerkErrorResponse on failure.
Example usage:
signUp.verifyCode("123456", VerificationType.EMAIL)
signUp.verifyCode("654321", VerificationType.PHONE)Content copied to clipboard
Parameters
code
The verification code to verify.
type
The type of verification (EMAIL or PHONE).