OAuthApi constructor

OAuthApi(
  1. dynamic identifier,
  2. String? clientId,
  3. String? clientSecret,
  4. String? tokenUrl,
  5. String? authorizationUrl,
  6. String? redirectUrl, {
  7. List<String>? scopes,
  8. Client? client,
  9. Converter? converter,
  10. bool usePkce = false,
  11. AuthStorage? authStorage,
})

Implementation

OAuthApi(identifier, this.clientId, this.clientSecret, this.tokenUrl,
    this.authorizationUrl, this.redirectUrl,
    {this.scopes,
    http.Client? client,
    Converter? converter,
    bool usePkce = false,
    AuthStorage? authStorage})
    : super(identifier,
          client: client, converter: converter, authStorage: authStorage) {
  authenticator = OAuthAuthenticator(identifier, clientId, clientSecret,
      tokenUrl, authorizationUrl, redirectUrl, scopes, usePkce);
}