Represents the Google Sign-In authentication provider. Use this class to obtain
GoogleAuthCredentials.
| String | GOOGLE_SIGN_IN_METHOD | Unique string identifier for Google sign-in method. |
| String | PROVIDER_ID | Unique string identifier for this provider type. |
| static AuthCredential |
getCredential(String idToken,
String
accessToken)
Returns a new instance of
AuthCredential
that wraps Google Sign-In ID or access tokens.
|
Unique string identifier for Google sign-in method.
Unique string identifier for this provider type.
Returns a new instance of AuthCredential
that wraps Google Sign-In ID or access tokens. Used when calling
signInWithCredential(AuthCredential) or
linkWithCredential(AuthCredential).
Both parameters are optional but at least one must be present.
| idToken | a valid Google Sign-In id token, obtained from the Google Sign-In SDK |
|---|---|
| accessToken | a valid Google Sign-In access token, obtained from the Google Sign-In SDK |