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: Resend an OTP

Examples

Resend an email signup confirmation

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

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
)