[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/OAuthCredential [Back]  [Original]

OAuthCredential  |  Firebase SDKs for Android Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

OAuthCredential

public abstract class OAuthCredential extends AuthCredential

java.lang.Object
    com.google.firebase.auth.AuthCredential
      com.google.firebase.auth.OAuthCredential

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

Summary

Public constructors

Public methods

abstract @Nullable String

Returns the OAuth access token associated with this credential.

abstract @Nullable String

Returns the OAuth ID token associated with this credential.

abstract @Nullable String

Returns the OAuth secret associated with this credential.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

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

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

Public constructors

OAuthCredential

public OAuthCredential()

Public methods

getAccessToken

public abstract @Nullable String getAccessToken()

Returns the OAuth access token associated with this credential.

getIdToken

public abstract @Nullable String getIdToken()

Returns the OAuth ID token associated with this credential.

getSecret

public abstract @Nullable String getSecret()

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

Send feedback

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

Last updated 2026-05-08 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-08 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page