verifyMfaCode

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)

Parameters

code

The MFA verification code.

type

The type of MFA being verified.