Swift: Verify and log in through OTP

Parameters

Examples

Verify Sms One-Time Password (OTP)

try await supabase.auth.verifyOTP(
  phone: "+13334445555",
  token: "123456",
  type: .sms
)

Verify Signup One-Time Password (OTP)

   try await supabase.auth.verifyOTP(
    email: "example@example-email.com",
    token: "123456",
    type: .signup
  )