Kotlin: Update a user

Modifies the user data.

Parameters

Examples

Update the email for an authenticated user

val user = supabase.auth.updateUser \{
   email = "newEmail@email.com"
\}

Update the password for an authenticated user

val user = supabase.auth.updateUser \{
   password = "secretPassword"
\}

Update the user's metadata

val user = supabase.auth.updateUser \{
   data \{
      put("name", "John")
   \}
\}