prepareSecondFactor

suspend fun SignIn.prepareSecondFactor(phoneNumberId: String? = null, emailAddressId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Prepares the second factor verification for the sign-in process.

Return

A ClerkResult containing the updated SignIn object on success, or a ClerkErrorResponse on failure.

Parameters

phoneNumberId

Optional phone number ID for phone_code strategy.

emailAddressId

Optional email address ID for email_code strategy.