GithubAuthProvider

public class GithubAuthProvider


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

Summary

Constants

static final String
GITHUB_SIGN_IN_METHOD = "github.com"

Unique string identifier for Github sign-in method.

static final String
PROVIDER_ID = "github.com"

Unique string identifier for this provider type.

Public methods

static @NonNull AuthCredential

Returns a new instance of AuthCredential that wraps a Github OAuth token.

Constants

GITHUB_SIGN_IN_METHOD

public static final String GITHUB_SIGN_IN_METHOD = "github.com"

Unique string identifier for Github sign-in method.

PROVIDER_ID

public static final String PROVIDER_ID = "github.com"

Unique string identifier for this provider type.

Public methods

getCredential

public static @NonNull AuthCredential getCredential(@NonNull String token)

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

Parameters
@NonNull String token

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