dart2.auth.oauth.mustache Maven / Gradle / Ivy
{{>header}}
{{>part_of}}
class OAuth implements Authentication {
OAuth({this.accessToken = ''});
String accessToken;
@override
Future applyToParams(List queryParams, Map headerParams,) async {
if (accessToken.isNotEmpty) {
headerParams['Authorization'] = 'Bearer $accessToken';
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy