AuthCredential

public abstract classAuthCredential implementsParcelable

Known direct subclasses
EmailAuthCredential

Wraps an email and password tuple for authentication purposes.

FacebookAuthCredential

Wraps a Facebook Login access token for authentication purposes.

GithubAuthCredential

Wraps a Github OAuth access token for authentication purposes.

GoogleAuthCredential

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

OAuthCredential

Holds credentials generated by a sign-in with a credential to an IDP that uses OAuth

PhoneAuthCredential

Wraps phone number and verification information for authentication purposes.

PlayGamesAuthCredential

Wraps a Google Play Games Server Auth Code, for authentication purposes.

TwitterAuthCredential

Wraps a Log in with Twitter token and secret tuple for authentication purposes.


Represents a credential that the Firebase Authentication server can use to authenticate a user.

Summary

Public methods

abstract @NonNullString

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

abstract @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
abstract void
writeToParcel(Parcel p, int p1)

Public methods

getProvider

public abstract @NonNullString getProvider()

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

getSignInMethod

public abstract @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.