setOAuthToken method

void setOAuthToken(
  1. String name,
  2. String token
)

Implementation

void setOAuthToken(String name, String token) {
  if (dio.interceptors.any((i) => i is OAuthInterceptor)) {
    (dio.interceptors.firstWhere((i) => i is OAuthInterceptor) as OAuthInterceptor).tokens[name] = token;
  }
}