OAuth2Helper constructor
OAuth2Helper(
- OAuth2Client client, {
- int grantType = AUTHORIZATION_CODE,
- 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, - BaseWebAuth? webAuthClient,
- Map<
String, dynamic> ? webAuthOpts,
Implementation
OAuth2Helper(this.client,
{this.grantType = AUTHORIZATION_CODE,
required this.clientId,
this.clientSecret,
this.scopes,
this.enablePKCE = true,
this.enableState = true,
tokenStorage,
this.afterAuthorizationCodeCb,
this.authCodeParams,
this.accessTokenParams,
this.webAuthClient,
this.webAuthOpts}) {
this.tokenStorage = tokenStorage ?? TokenStorage(client.tokenUrl);
}