update

suspend fun update(userId: String, username: String? = null, password: String? = null, role: String? = null): User

Updates a user.

Return

The updated User.

Parameters

userId

The unique identifier of the user.

username

The new username.

password

The new password.

role

The new role.