Swift: Create a new user

Examples

Sign up

try await supabase.auth.signUp(
  email: "example@email.com",
  password: "example-password"
)

Sign up with additional user metadata

try await supabase.auth.signUp(
  email: "example@email.com",
  password: "example-password",
  data: [
    "first_name": .string("John"),
    "age": .number(24)
  ]
)

Sign up with a redirect URL

try await supabase.auth.signUp(
  email:  "example@email.com",
  password: "example-password",
  redirectTo: URL(string: "https://example.com/welcome")!
)