OAuth2Helper constructor

OAuth2Helper(
  1. OAuth2Client client, {
  2. int grantType = authorizationCode,
  3. required String clientId,
  4. String? clientSecret,
  5. List<String>? scopes,
  6. bool enablePKCE = true,
  7. int verifierLength = defaultVerifierLength,
  8. bool enableState = true,
  9. int stateLength = defaultStateLength,
  10. dynamic tokenStorage,
  11. Function? afterAuthorizationCodeCb,
  12. Map<String, dynamic>? authCodeParams,
  13. Map<String, dynamic>? accessTokenParams,
  14. Map<String, String>? accessTokenHeaders,
  15. BaseWebAuth? webAuthClient,
  16. Map<String, dynamic>? webAuthOpts,
  17. Client? httpClient,
})

Implementation

OAuth2Helper(
  this.client, {
  this.grantType = authorizationCode,
  required this.clientId,
  this.clientSecret,
  this.scopes,
  this.enablePKCE = true,
  this.verifierLength = defaultVerifierLength,
  this.enableState = true,
  this.stateLength = defaultStateLength,
  tokenStorage,
  this.afterAuthorizationCodeCb,
  this.authCodeParams,
  this.accessTokenParams,
  this.accessTokenHeaders,
  this.webAuthClient,
  this.webAuthOpts,
  this.httpClient,
}) : tokenStorage = tokenStorage ?? TokenStorage(client.tokenUrl);