prepareVerification
The prepareVerification method is used to initiate the verification process for a field that requires it.
There are two fields that need to be verified:
SignUp.emailAddress: The email address can be verified via an email code. This is a one-time code that is sent to the email already provided to the SignUp object. The prepareVerification sends this email.
SignUp.phoneNumber: The phone number can be verified via a phone code. This is a one-time code that is sent via an SMS to the phone already provided to the SignUp object. The prepareVerification sends this SMS.
After calling this method, use attemptVerification with the code received to complete the verification.
Return
A ClerkResult containing either the result of the verification preparation or a ClerkErrorResponse. A successful response indicates that the verification process has been initiated, and the SignUp object is returned.
Parameters
The parameters for preparing the verification. Specifies the field which requires verification.