updateUser

abstract fun updateUser(userId: String, user: User): User?

Updates an existing user.

Return

the updated user, or null if the user does not exist

Parameters

userId

the ID of the user to update

user

the user data to update