AuthCredential
public abstract class AuthCredential implements Parcelable
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 @NonNull String |
Returns the unique string identifier for the provider type with which the credential is associated. |
abstract @NonNull String |
Returns the unique string identifier for the sign in method with which the credential is associated. |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited methods |
||||
|---|---|---|---|---|
|
Public methods
getProvider
public abstract @NonNull String getProvider()
Returns the unique string identifier for the provider type with which the credential is associated.
getSignInMethod
public abstract @NonNull String getSignInMethod()
Returns the unique string identifier for the sign in method with which the credential is associated. Should match that returned by fetchSignInMethodsForEmail after this user has signed in with this type of credential.