github_sign_in 0.0.4 copy "github_sign_in: ^0.0.4" to clipboard
github_sign_in: ^0.0.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
copied to clipboard

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;
    }
copied to clipboard
21
likes
20
points
200
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.06 - 2025.03.21

Sign In With GitHub

Repository (GitHub)

License

BSD-2-Clause (license)

Dependencies

flutter, flutter_webview_plugin, http

More

Packages that depend on github_sign_in