createChallenge

abstract suspend fun createChallenge(factorId: String, channel: Phone.Channel? = null): MfaChallenge(source)

Creates a new MFA challenge, which can be used to verify the user's code using verifyChallenge

Parameters

factorId

The id of the MFA factor to verify

channel

The channel to send the challenge to. Defaults to SMS (only applies to the FactorType.Phone factor type)