signInWithMFACode

abstract suspend fun signInWithMFACode(mfaCode: String, trusted: Boolean): RainbowResult<Unit>

Initiates a sign-in process using Multi-Factor Authentication (MFA) generated code.

When the user employs the classic signIn method, the listener informs whether two-factor authentication is required. In such cases, call this method and provide the code generated by the third-party application.

Return

RainbowResult to receive callbacks for sign-in events.

Parameters

mfaCode

The Multi-Factor Authentication (MFA) code for authentication.

trusted

A boolean indicating whether the application can be trusted.

See also

Failure.Companion.MFA_REQUIRED_ALWAYS

and Failure.MFA_REQUIRED_UNTRUSTED_ONLY