verifyMfaCode
suspend fun SignIn.verifyMfaCode(code: String, type: MfaType): ClerkResult<SignIn, ClerkErrorResponse>
Verifies MFA with the provided code and type.
Return
A ClerkResult containing the updated SignIn object on success, or a ClerkErrorResponse on failure.
Example usage:
signIn.verifyMfaCode("123456", MfaType.PHONE_CODE)
signIn.verifyMfaCode("123456", MfaType.TOTP)
signIn.verifyMfaCode("backup123", MfaType.BACKUP_CODE)Content copied to clipboard
Parameters
code
The MFA verification code.
type
The type of MFA being verified.