Overview of Multi-Factor Authentication (MFA) in Supabase Swift
Multi-Factor Authentication (MFA) methods in the Supabase Swift client are accessed via the supabase.auth.mfa namespace. The primary stable second factor is TOTP (time-based one-time password). Users can enroll up to 10 TOTP factors, which is recommended as a strategy for recovery instead of using recovery codes, which are not supported.
WebAuthn/Passkey as a second factor is currently experimental. To use it, you must opt in by importing the experimental SPI.
@_spi(Experimental) import Supabase