Updates the data for a given user and returns the updated user confirmed by the server.
user
Future<User> updateUser(String token, User user);