2025-08-16 17:27:57 +07:00
|
|
|
part of '../auth.dart';
|
|
|
|
|
|
|
|
|
|
abstract class IAuthRepository {
|
|
|
|
|
Future<Either<AuthFailure, Auth>> login({
|
|
|
|
|
required String email,
|
|
|
|
|
required String password,
|
2026-05-12 02:00:38 +07:00
|
|
|
required String deviceId,
|
|
|
|
|
required String deviceName,
|
|
|
|
|
required String deviceType,
|
|
|
|
|
required String platform,
|
|
|
|
|
required String osVersion,
|
|
|
|
|
required String appVersion,
|
|
|
|
|
String? fcmToken,
|
2025-08-16 17:27:57 +07:00
|
|
|
});
|
2025-08-16 17:48:49 +07:00
|
|
|
Future<bool> hasToken();
|
|
|
|
|
Future<Either<AuthFailure, User>> currentUser();
|
2025-08-16 19:29:21 +07:00
|
|
|
Future<Either<AuthFailure, Unit>> logout();
|
2025-08-16 17:27:57 +07:00
|
|
|
}
|