user is returned but session is null.user and a session are returned.SITE_URL by default. You can modify your SITE_URL or add additional redirect URLs in your project.User already registered is returned.getUser().One of `email` or `phone` must be provided.
One of `email` or `phone` must be provided.
undefined
A custom data object to store additional user metadata.
Only for email signups. The redirect URL embedded in the email link. Must be a configured redirect URL for your Supabase instance.
undefined
try await supabase.auth.signUp(
  email: "example@email.com",
  password: "example-password"
)
try await supabase.auth.signUp(
  phone: "123456789",
  password: "example-password",
  channel: "sms"
)
try await supabase.auth.signUp(
  phone: "123456789",
  password: "example-password",
  channel: "whatsapp"
)
try await supabase.auth.signUp(
  email: "example@email.com",
  password: "example-password",
  data: [
    "first_name": .string("John"),
    "age": .number(24)
  ]
)
try await supabase.auth.signUp(
  email:  "example@email.com",
  password: "example-password",
  redirectTo: URL(string: "https://example.com/welcome")!
)