resolveInstallationToken method

Future<Map<String, dynamic>> resolveInstallationToken(
  1. String buildJobId
)

Resolves the Installation Access Token via Firebase Functions.

Implementation

Future<Map<String, dynamic>> resolveInstallationToken(
  String buildJobId,
) async {
  final response = await _apiService.resolveInstallationToken(buildJobId);
  if (response.isSuccessful) {
    return response.body ?? const {};
  }
  throw HttpException(
    'Failed to resolve token on server: ${response.statusCode} ${response.error}',
  );
}