mirrored_repositories/El3b/lib/Domain
import 'package:El3b/Data/Repository/UserRepositoryImpl.dart';
import 'package:El3b/Domain/Repository/UserRepository.dart';
import 'package:firebase_auth/firebase_auth.dart';

// dependency injection
SignInWithFacebookUseCase injectSignInWithFacebookUseCase(){
  return SignInWithFacebookUseCase(repository: injectUserRepo());
}

// the object
class SignInWithFacebookUseCase {

  UserRepository repository;
  SignInWithFacebookUseCase({required this.repository});

  Future<User> invoke()async{
    var response = await repository.signInWithFacebook();
    return response;
  }

}