dart2.auth.oauth.mustache Maven / Gradle / Ivy
{{>header}}
{{>part_of}}
class OAuth implements Authentication {
OAuth({this.accessToken});
String accessToken;
@override
void applyToParams(List queryParams, Map headerParams) {
if (accessToken != null) {
headerParams['Authorization'] = 'Bearer $accessToken';
}
}
}