import 'dart:async';

import 'package:mvi_base/src/models/user.dart';
import 'package:todos_repository_core/todos_repository_core.dart';

class UserInteractor {
  final UserRepository _repository;

  UserInteractor(UserRepository repository) : _repository = repository;

  Future<User> login() async =>
      User(displayName: (await _repository.login()).displayName);
}
