obtainAccessCredentials method

  1. @override
Future<void> obtainAccessCredentials(
  1. String uri
)
inherited

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!;
}