attemptTOTPVerification
suspend fun User.attemptTOTPVerification(code: String): ClerkResult<TOTPResource, ClerkErrorResponse>
Verifies a TOTP (Time-based One-Time Password) code to complete the TOTP setup process.
This method should be called after createTOTP to verify that the user has correctly configured their authenticator app. The user should provide a 6-digit code generated by their authenticator app.
Return
A ClerkResult containing the verified TOTPResource on success, or a ClerkErrorResponse on failure
Parameters
code
The 6-digit TOTP code generated by the user's authenticator app