obtainAccessCredentials method
Implementation
@override
Future<void> obtainAccessCredentials(String uri) {
if (_call == null) {
final authClient = http.Client();
_call = obtainCredentialsWithClient(authClient, uri).then((credentials) {
_accessToken = credentials.accessToken;
_call = null;
authClient.close();
});
}
return _call!;
}