Kotlin: Update a user

Updates the user data.

Parameters

Examples

Updates a user's email

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

Updates a user's password

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

Updates a user's metadata

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

Updates a user's app_metadata

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

Confirms a user's email address

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

Confirms a user's phone number

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