create Challenge And Verify
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
factor Id
The id of the MFA factor to verify
code
The code to verify
save Session
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)