Prepares a challenge used to verify that a user has access to a MFA factor.
mfa.verify().System assigned identifier for authenticator device as returned by enroll
Messaging channel to use for phone factors (e.g. `OtpChannel.whatsapp` or `OtpChannel.sms`). Defaults to the server's behavior (SMS) when omitted. Ignored for TOTP factors.
final res = await supabase.auth.mfa.challenge(
factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
);
final res = await supabase.auth.mfa.challenge(
factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
channel: OtpChannel.whatsapp,
);