OAuth2Helper constructor
OAuth2Helper(
- OAuth2Client client, {
- int grantType = authorizationCode,
- required String clientId,
- String? clientSecret,
- List<
String> ? scopes, - bool enablePKCE = true,
- bool enableState = true,
- dynamic tokenStorage,
- Function? afterAuthorizationCodeCb,
- Map<
String, dynamic> ? authCodeParams, - Map<
String, dynamic> ? accessTokenParams, - Map<
String, String> ? accessTokenHeaders, - BaseWebAuth? webAuthClient,
- 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);
}