import '../interfaces/auth_service.dart';
import 'api_client.dart';

class AuthApiService implements AuthService {
  final ApiClient _client;

  AuthApiService(this._client);

  @override
  Future<String> login(String username, String secret) async {
    final data = await _client.post('/auth/login', {
      'username': username,
      'secret': secret,
    });
    return data['access_token'] as String;
  }
}
