github_sign_in 0.0.5-dev.4 icon indicating copy to clipboard operation
github_sign_in: ^0.0.5-dev.4 copied to clipboard

Sign In With GitHub

dart-github-sign-in #

Sign In With GitHub

Getting Started #

Add package dependency

github_sign_in: ^0.0.1

Perform Sign In With GitHub

final GitHubSignIn gitHubSignIn = GitHubSignIn(
        clientId: clientId,
        clientSecret: clientSecret,
        redirectUrl: redirectUrl);
    var result = await gitHubSignIn.signIn(context);
    switch (result.status) {
      case GitHubSignInResultStatus.ok:
        print(result.token)
        break;

      case GitHubSignInResultStatus.cancelled:
      case GitHubSignInResultStatus.failed:
        print(result.errorMessage);
        break;
    }
15
likes
100
pub points
88%
popularity

Publisher

unverified uploader

Sign In With GitHub

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter, http, url_launcher, webview_flutter

More

Packages that depend on github_sign_in