updateParamsForAuth method
Update query and header parameters based on authentication settings. @param authNames The authentications to apply
Implementation
Future updateParamsForAuth(Set<String> authNames, QueryParams queryParams,
Map<String, String?> headerParams) async {
for (var authName in authNames.orEmptyIter().toList()) {
Authentication? auth = authentications[authName];
if (auth == null) {
throw ArgumentError("Authentication undefined: " +
authName +
" but found ${authentications.keys}");
}
await auth.applyToParams(queryParams, headerParams);
}
}