Summary: Constants | Methods | Inherited Methods | [Expand All]
public class

# GithubAuthProvider

extends Object

java.lang.Object
↳ | com.google.firebase.auth.GithubAuthProvider

## Class Overview

Represents the Github authentication provider. Use this class to obtain `GithubAuthCredential`s.

## Summary

Constants
String | PROVIDER_ID | Unique string identifier for this provider type.

Public Methods
static AuthCredential | getCredential(String token) Returns a new instance of `AuthCredential` that wraps a Github OAuth token.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Constants

#### public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "github.com"

## Public Methods

#### public static AuthCredential getCredential (String token)

Returns a new instance of `AuthCredential` that wraps a Github OAuth token. Used when calling `signInWithCredential(AuthCredential)` or `linkWithCredential(AuthCredential)`.

##### Parameters

token | A valid Github OAuth access token, obtained from the Github OAuth flow