OAuthCredential

public abstract classOAuthCredential extendsAuthCredential


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

Summary

Public constructors

Public methods

abstract @NullableString

Returns the OAuth access token associated with this credential.

abstract @NullableString

Returns the OAuth ID token associated with this credential.

abstract @NullableString

Returns the OAuth secret associated with this credential.

Inherited Constants

Fromandroid.os.Parcelable
static final int
static final int

Inherited methods

Fromcom.google.firebase.auth.AuthCredential
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.

Fromandroid.os.Parcelable
abstract int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

OAuthCredential

public OAuthCredential()

Public methods

getAccessToken

public abstract @NullableString getAccessToken()

Returns the OAuth access token associated with this credential.

getIdToken

public abstract @NullableString getIdToken()

Returns the OAuth ID token associated with this credential.

getSecret

public abstract @NullableString getSecret()

Returns the OAuth secret associated with this credential. This will be null for OAuth 2.0 providers.

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.