applyToParams method

  1. @override
void applyToParams(
  1. QueryParams params,
  2. Map<String, String?> headerParams
)
override

Apply authentication settings to header and query params.

Implementation

@override
void applyToParams(QueryParams params, Map<String, String?> headerParams) {
  if (accessToken != null) {
    headerParams["Authorization"] = "Bearer " + accessToken!;
  }
}