sendCode
suspend fun SignUp.sendCode(block: SendCodeBuilder.() -> Unit): ClerkResult<SignUp, ClerkErrorResponse>
Sends a verification code to the specified email or phone.
When the value differs from the sign-up's current SignUp.emailAddress or SignUp.phoneNumber, the sign-up is first updated to it, so the code goes to the address the caller named.
Return
A ClerkResult containing the updated SignUp object on success, or a ClerkErrorResponse on failure.
Example usage:
signUp.sendCode { email = "newuser@email.com" }
// or
signUp.sendCode { phone = "+1234567890" }Content copied to clipboard
Parameters
block
Builder block to configure where to send the code.