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. bool enableState = true,
  8. dynamic tokenStorage,
  9. Function? afterAuthorizationCodeCb,
  10. Map<String, dynamic>? authCodeParams,
  11. Map<String, dynamic>? accessTokenParams,
  12. Map<String, String>? accessTokenHeaders,
  13. BaseWebAuth? webAuthClient,
  14. Map<String, dynamic>? webAuthOpts,
})

Implementation

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