OAuthConfig constructor

const OAuthConfig({
  1. String? authServerMetadataUrl,
  2. required String authorizationEndpoint,
  3. required String tokenEndpoint,
  4. required String clientId,
  5. String? clientSecret,
  6. String? redirectUri,
  7. List<String> scopes = const [],
  8. OAuthGrantType grantType = OAuthGrantType.authorizationCode,
  9. String codeChallengeMethod = 'S256',
})

Implementation

const OAuthConfig({
  this.authServerMetadataUrl,
  required this.authorizationEndpoint,
  required this.tokenEndpoint,
  required this.clientId,
  this.clientSecret,
  this.redirectUri,
  this.scopes = const [],
  this.grantType = OAuthGrantType.authorizationCode,
  this.codeChallengeMethod = 'S256',
});