GoogleAuthProvider

public class GoogleAuthProvider extends Object

Represents the Google Sign-In authentication provider. Use this class to obtain GoogleAuthCredentials.

Constant Summary

String PROVIDER_ID Unique string identifier for this provider type.

Public Method Summary

static AuthCredential
getCredential(String idToken, String accessToken)
Returns a new instance of AuthCredential that wraps Google Sign-In ID or access tokens.

Inherited Method Summary

Constants

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "google.com"

Public Methods

public static AuthCredential getCredential (String idToken, String accessToken)

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.

Parameters
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

Send feedback about...

Need help? Visit our support page.