Creates a new user.
autoConfirm
to true. Both arguments default to false.The builder to create a new user.
val userWithEmail = supabase.auth.admin.createUserWithEmail \{
email = "example@email.com"
password = "secretpassword"
userMetadata \{
put("name", "John")
\}
\}
val userWithPhone = supabase.auth.admin.createUserWithPhone \{
phone = "+49123456789"
password = "secretpassword"
userMetadata \{
put("name", "John")
\}
\}
val userWithEmail = supabase.auth.admin.createUserWithEmail \{
email = "example@email.com"
password = "secretpassword"
autoConfirm = true
\}
val userWithPhone = supabase.auth.admin.createUserWithPhone \{
phone = "+49123456789"
password = "secretpassword"
autoConfirm = true
\}