Creates a new user.
SITE_URL
by default. You can modify your SITE_URL
or add additional redirect URLs in your project.User already registered
is returned.The provider to use for the user's authentication. In this case `Email` or `Phone`.
The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android.
The configuration for signing in with `Email` or `Phone`.
val user = supabase.auth.signUpWith(Email) \{
email = "example@email.com"
password = "example-password"
\}
val user = supabase.auth.signUpWith(Phone) \{
phone = "+4912345679"
password = "example-password"
channel = Phone.Channel.WHATSAPP
\}
val user = supabase.auth.signUpWith(Phone) \{
phone = "+4912345679"
password = "example-password"
\}
val user = supabase.auth.signUpWith(Email) \{
email = "example@email.com"
password = "example-password"
data = buildJsonObject \{
put("first_name", "John")
put("age", 24)
\}
\}
val user = supabase.auth.signUpWith(Email, redirectUrl = "https://example.com") \{
email = "example@email.com"
password = "example-password"
\}