applyAuthHeader method

Future<Tuple<QueryParams, Map<String, String>>> applyAuthHeader({
  1. QueryParams? queryParams,
  2. Map<String, String>? headers,
})

Implementation

Future<Tuple<QueryParams, Map<String, String>>> applyAuthHeader(
    {QueryParams? queryParams, Map<String, String>? headers}) async {
  queryParams ??= QueryParams();
  headers ??= {};
  for (var auth in authentications.values) {
    await auth.applyToParams(queryParams, headers);
  }
  return Tuple(queryParams, headers);
}