[[["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 2024-01-19 UTC."],[],[],null,["# OAuthCredential class\n\nRepresents the OAuth credentials returned by an [OAuthProvider](./auth.oauthprovider.md#oauthprovider_class).\n\nImplementations specify the details about each auth provider's credential requirements.\n\n**Signature:** \n\n export declare class OAuthCredential extends AuthCredential \n\n**Extends:** [AuthCredential](./auth.authcredential.md#authcredential_class)\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|---------------------------------------------------------------------|-----------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [accessToken](./auth.oauthcredential.md#oauthcredentialaccesstoken) | | string | The OAuth access token associated with the credential if it belongs to an [OAuthProvider](./auth.oauthprovider.md#oauthprovider_class), such as `facebook.com`, `twitter.com`, etc. |\n| [idToken](./auth.oauthcredential.md#oauthcredentialidtoken) | | string | The OAuth ID token associated with the credential if it belongs to an OIDC provider, such as `google.com`. |\n| [secret](./auth.oauthcredential.md#oauthcredentialsecret) | | string | The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0 provider, such as `twitter.com`. |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|---------------------------------------------------------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------|\n| [fromJSON(json)](./auth.oauthcredential.md#oauthcredentialfromjson) | `static` | Static method to deserialize a JSON representation of an object into an [AuthCredential](./auth.authcredential.md#authcredential_class). |\n| [toJSON()](./auth.oauthcredential.md#oauthcredentialtojson) | | Returns a JSON-serializable representation of this object. |\n\nOAuthCredential.accessToken\n---------------------------\n\nThe OAuth access token associated with the credential if it belongs to an [OAuthProvider](./auth.oauthprovider.md#oauthprovider_class), such as `facebook.com`, `twitter.com`, etc.\n\n**Signature:** \n\n accessToken?: string;\n\nOAuthCredential.idToken\n-----------------------\n\nThe OAuth ID token associated with the credential if it belongs to an OIDC provider, such as `google.com`.\n\n**Signature:** \n\n idToken?: string;\n\nOAuthCredential.secret\n----------------------\n\nThe OAuth access token secret associated with the credential if it belongs to an OAuth 1.0 provider, such as `twitter.com`.\n\n**Signature:** \n\n secret?: string;\n\nOAuthCredential.fromJSON()\n--------------------------\n\nStatic method to deserialize a JSON representation of an object into an [AuthCredential](./auth.authcredential.md#authcredential_class).\n\n**Signature:** \n\n static fromJSON(json: string | object): OAuthCredential | null;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------|------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| json | string \\| object | Input can be either Object or the stringified representation of the object. When string is provided, JSON.parse would be called first. |\n\n**Returns:**\n\n[OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) \\| null\n\nIf the JSON input does not represent an [AuthCredential](./auth.authcredential.md#authcredential_class), null is returned.\n\nOAuthCredential.toJSON()\n------------------------\n\nReturns a JSON-serializable representation of this object.\n\n**Signature:** \n\n toJSON(): object;\n\n**Returns:**\n\nobject\n\na JSON-serializable representation of this object."]]