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: Sign in a user through OTP

Parameters

Examples

Sign in with email

try await supabase.auth.signInWithOTP(
  email: "example@email.com",
  options: EmailOTPOptions(
    redirectTo: URL(string: "my-app-scheme://callback")!
  )
)

Sign in with SMS OTP

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

Sign in with WhatsApp OTP

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