github_signin_promax 0.0.6 github_signin_promax: ^0.0.6 copied to clipboard
The Github sign in with Oauth
github_signin_promax package #
Sign In With GitHub Promax https://pub.dev/packages/github_signin_promax
Getting Started #
Add package dependency
github_signin_promax: ^0.0.6
Perform Sign In With GitHub
How to use #
// create required params
var params = GithubSignInParams(
clientId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
clientSecret: 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
redirectUrl: 'http://localhost:3000/auth/github/callback',
scopes: 'read:user,user:email',
);
// Push [GithubSigninScreen] to perform login then get the [GithubSignInResponse]
Navigator.of(context).push(MaterialPageRoute(builder: (builder) {
return GithubSigninScreen(
params: params,
headerColor: Colors.green,
title: 'Login with github',
);
})).then((value) {
// TOTO: handle the response value as a GithubSignInResponse instance
});