GithubAuthCredential constructor

GithubAuthCredential(
  1. {String? accessToken,
  2. String? idToken}
)

Constructs a GithubAuthCredential.

accessToken Optional access token. idToken Optional ID token.

Returns a GithubAuthCredential instance.

Example:

final credential = GithubAuthCredential(accessToken: 'github_token');

Implementation

GithubAuthCredential(
    { String? accessToken,
    String? idToken}) : super(providerId: GithubAuthProvider.PROVIDER_ID,
    signInMethod: GithubAuthProvider.GITHUB_SIGN_IN_METHOD, accessToken: accessToken,
    idToken: idToken);