Swift: Sign in a user through OTP

Parameters

Examples

Sign in with email

try await supabase.auth.signInWithOTP(
  email: "example@email.com",
  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"
)