In order to use the modifyUser() method, the user needs to be signed in first.
By default, email updates sends a confirmation link to both the user's current and new email. To only send a confirmation link to the user's new email, disable Secure email change in your project's email auth provider settings.
Examples
Update the email for an authenticated user
val user = supabase.gotrue.modifyUser \{
email = "newEmail@email.com"
\}
Update the password for an authenticated user
val user = supabase.gotrue.modifyUser \{
password = "secretPassword"
\}
Update the user's metadata
val user = supabase.gotrue.modifyUser \{
data \{
put("name", "John")
\}
\}