OAuthApi.fromAuthenticator constructor

OAuthApi.fromAuthenticator(
  1. String identifier,
  2. OAuthAuthenticator? authenticator, {
  3. Client? client,
  4. Converter? converter,
  5. AuthStorage? authStorage,
})

Implementation

OAuthApi.fromAuthenticator(String identifier, this.authenticator,
    {http.Client? client, Converter? converter, AuthStorage? authStorage})
    : super(identifier,
          client: client, converter: converter, authStorage: authStorage) {
  this.clientId = authenticator!.clientId;
  this.clientSecret = authenticator!.clientSecret;
  this.tokenUrl = authenticator!.tokenUrl;
  this.scopes = authenticator!.scope;
}