For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: List all factors for current user

Examples

List all factors for a user

let factors = try await supabase.auth.mfa.factors()
let verified = factors.verified
let unverified = factors.unverified

List the verified TOTP factors

let totpFactors = try await supabase.auth.mfa.factors().verified
  .filter { $0.factorType == .totp }