TF-34 Add domain layer login for fix bug mock data user

This commit is contained in:
dab246
2021-08-25 13:11:24 +07:00
committed by Dat H. Pham
parent b50cec44c2
commit b3e1534de3
5 changed files with 14 additions and 6 deletions
@@ -1,5 +1,5 @@
import 'package:model/model.dart';
abstract class AuthenticationRepository {
Future<User> authenticationUser(Uri baseUrl, UserName userName, Password password);
Future<UserProfile> authenticationUser(Uri baseUrl, UserName userName, Password password);
}
@@ -18,4 +18,10 @@ abstract class CredentialRepository {
Future removePassword();
Future<Password> getPassword();
Future saveUserProfile(UserProfile userProfile);
Future removeUserProfile();
Future<UserProfile> getUserProfile();
}