GitHubOAuth2Client constructor

GitHubOAuth2Client({
  1. required String redirectUri,
  2. required String customUriScheme,
})

Implementation

GitHubOAuth2Client(
    {required String redirectUri, required String customUriScheme})
    : super(
          authorizeUrl: 'https://github.com/login/oauth/authorize',
          tokenUrl: 'https://github.com/login/oauth/access_token',
          redirectUri: redirectUri,
          customUriScheme: customUriScheme) {
  accessTokenRequestHeaders = {'Accept': 'application/json'};
}