Swift: Sign in a user through OTP

Parameters

Examples

Sign in with email

try await supabase.auth.signInWithOTP(
  email: "[email protected]",
  redirectTo: URL(string: "my-app-scheme://")!
)

Sign in with SMS OTP

try await supabase.auth.signInWithOTP(phone: "+13334445555")

Sign in with WhatsApp OTP

try await supabase.auth.signInWithOTP(
  phone: "+13334445555",
  channel: "whatsapp"
)