verifyChallenge

abstract suspend fun verifyChallenge(factorId: String, challengeId: String, code: String, saveSession: Boolean = true): UserSession(source)

Verifies a MFA challenge

Parameters

factorId

The id of the MFA factor to verify

challengeId

The id of the challenge to verify

code

The code to verify

saveSession

Whether to save the session after verification in GoTrue