Fetches a user by token. In a real app, you would get the token from the local storage.
Future<User> getUserByToken(int token) async { return _repository.getByToken(token); }