Files
tm_app/lib/data/services/auth_service.dart
T
Yashar Panahi 64c4ebf0f8 feat: add arch
2025-08-02 12:31:42 +03:30

13 lines
380 B
Dart

class AuthService {
Future<Map<String, dynamic>> login(String email, String password) async {
// شبیه‌سازی API Call
await Future.delayed(const Duration(seconds: 2));
if (email == 'test@example.com' && password == 'password123') {
return {'token': 'xyz123', 'name': 'John Doe'};
} else {
throw Exception('Invalid credentials');
}
}
}