Kotlin: Update a user

Updates the user data.

Examples

Updates a user's email

supabase.gotrue.admin.updateUserById(uid = "id") \{
    email = "example@email.com"
\}

Updates a user's password

supabase.gotrue.admin.updateUserById(uid = "id") \{
    password = "password"
\}

Updates a user's metadata

supabase.gotrue.admin.updateUserById(uid = "id") \{
    userMetadata = buildJsonObject \{
        put("key", "value")
    \}
\}

Updates a user's app_metadata

supabase.gotrue.admin.updateUserById(uid = "id") \{
    appMetadata = buildJsonObject \{
        put("key", "value")
    \}
\}

Confirms a user's email address

supabase.gotrue.admin.updateUserById(uid = "id") \{
    emailConfirm = true
\}

Confirms a user's phone number

supabase.gotrue.admin.updateUserById(uid = "id") \{
    phoneConfirm = true
\}