GitHubIdpConfig constructor

GitHubIdpConfig({
  1. required String clientId,
  2. required String clientSecret,
  3. GitHubAccountDetailsValidation githubAccountDetailsValidation = validateGitHubAccountDetails,
  4. GetExtraGitHubInfoCallback? getExtraGitHubInfoCallback,
})

Creates a new instance of GitHubIdpConfig.

Implementation

GitHubIdpConfig({
  required this.clientId,
  required this.clientSecret,
  this.githubAccountDetailsValidation = validateGitHubAccountDetails,
  this.getExtraGitHubInfoCallback,
}) : oauth2Config = OAuth2PkceServerConfig(
       tokenEndpointUrl: Uri.https('github.com', '/login/oauth/access_token'),
       clientId: clientId,
       clientSecret: clientSecret,
       credentialsLocation: OAuth2CredentialsLocation.body,
       parseTokenResponse: parseTokenResponse,
     );