createChallengeAndVerify

open suspend fun createChallengeAndVerify(factorId: String, code: String, channel: Phone.Channel = Phone.Channel.SMS, saveSession: Boolean = true): UserSession(source)

Creates a new MFA challenge and immediately verifies it

Parameters

factorId

The id of the MFA factor to verify

code

The code to verify

saveSession

Whether to save the session after verification in Supabase Auth

channel

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