public class GithubAuthProvider extends Object
Represents the Github authentication provider. Use this class to obtain GithubAuthCredential
s.
Constant Summary
String | GITHUB_SIGN_IN_METHOD | Unique string identifier for Github sign-in method. |
String | PROVIDER_ID | Unique string identifier for this provider type. |
Public Method Summary
static AuthCredential |
getCredential(String token)
Returns a new instance of
AuthCredential
that wraps a Github OAuth token.
|
Inherited Method Summary
Constants
public static final String GITHUB_SIGN_IN_METHOD
Unique string identifier for Github sign-in method.
Constant Value: "github.com"
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 |
---|