getServiceHeaders static method

Future<Map<String, String>> getServiceHeaders()

Returns headers required for service API calls

Implementation

static Future<Map<String, String>> getServiceHeaders() async {
  final token = await getAccessToken();
  return {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer $token',
  };
}