GoogleAuthCredential

public classGoogleAuthCredential extendsAuthCredential


Wraps a Google Sign-In ID token and/or access token, for authentication purposes.

Summary

Public methods

@NonNullString

Returns the unique string identifier for the provider type with which the credential is associated.

@NonNullString

Returns the unique string identifier for the sign in method with which the credential is associated.

Inherited Constants

Fromandroid.os.Parcelable
static final int
static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<GoogleAuthCredentialCREATOR

Public methods

getProvider

public @NonNullString getProvider()

Returns the unique string identifier for the provider type with which the credential is associated.

getSignInMethod

public @NonNullString getSignInMethod()

Returns the unique string identifier for the sign in method with which the credential is associated. Should match that returned byfetchSignInMethodsForEmail after this user has signed in with this type of credential.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.