loginWithGitHub static method

Future<Map<String, dynamic>> loginWithGitHub({
  1. required String code,
  2. String? callbackPath,
})

GitHub OAuth - returns user data without saving

Implementation

static Future<Map<String, dynamic>> loginWithGitHub({
  required String code,
  String? callbackPath,
}) async {
  return GitHubProvider.authenticate(
    code: code,
    callbackPath: callbackPath,
    clientId: config.githubClientId,
    clientSecret: config.githubClientSecret,
    redirectBase: config.redirectBase,
  );
}