Swift: Resend an OTP

Examples

Resend an email signup confirmation

try await supabase.auth.resend(
  email: "email@example.com",
  type: .signup,
  emailRedirectTo: URL(string: "my-app-scheme://")
)

Resend a phone signup confirmation

try await supabase.auth.resend(
  phone: "1234567890",
  type: .sms
)

Resend email change email

try await supabase.auth.resend(
  email: "email@example.com",
  type: .emailChange
)

Resend phone change OTP

try await supabase.auth.resend(
  phone: "1234567890",
  type: .phoneChange
)