credential static method
Creates a GithubAuthCredential.
idToken Optional ID token.
accessToken Optional access token.
At least one token must be provided.
Returns a GithubAuthCredential instance.
Throws AssertionError if both tokens are null.
Example:
final cred = GithubAuthProvider.credential(accessToken: 'github_access_token');
Implementation
static GithubAuthCredential credential({String? idToken, String? accessToken}) {
assert(accessToken != null || idToken != null, 'Tokens cannot be null!');
return GithubAuthCredential(
idToken: idToken,
accessToken: accessToken);
}