GithubAuthProvider

class GithubAuthProvider


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

Summary

Constants

const String!
GITHUB_SIGN_IN_METHOD = "github.com"

Unique string identifier for Github sign-in method.

const String!
PROVIDER_ID = "github.com"

Unique string identifier for this provider type.

Public functions

java-static AuthCredential

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

Constants

GITHUB_SIGN_IN_METHOD

const val GITHUB_SIGN_IN_METHOD = "github.com": String!

Unique string identifier for Github sign-in method.

PROVIDER_ID

const val PROVIDER_ID = "github.com": String!

Unique string identifier for this provider type.

Public functions

getCredential

java-static fun getCredential(token: String): AuthCredential

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

Parameters
token: String

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