[[["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-23 UTC."],[],[],null,["# firebase::auth::OAuthProvider Class Reference\n\nfirebase::auth::OAuthProvider\n=============================\n\n\n`#include \u003ccredential.h\u003e`\n\nOAuth2.0+UserInfo auth provider (OIDC compliant and non-compliant).\n\nSummary\n-------\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCredential](#classfirebase_1_1auth_1_1_o_auth_provider_1ae55846af54eb69df3f8af05bd583d003)`(const char *provider_id, const char *id_token, const char *access_token)` | [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential) Generate a credential for an OAuth2 provider. |\n| [GetCredential](#classfirebase_1_1auth_1_1_o_auth_provider_1a0689664c5877e71f3ba9a6949a848d53)`(const char *provider_id, const char *id_token, const char *raw_nonce, const char *access_token)` | [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential) Generate a credential for an OAuth2 provider. |\n\nPublic static functions\n-----------------------\n\n### GetCredential\n\n```c++\nCredential GetCredential(\n const char *provider_id,\n const char *id_token,\n const char *access_token\n)\n``` \nGenerate a credential for an OAuth2 provider.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------------------------------------------------------------| | `provider_id` | Name of the OAuth2 provider TODO(jsanmiya) add examples. | | `id_token` | The authentication token (OIDC only). | | `access_token` | TODO(jsanmiya) add explanation (currently missing from Android and iOS implementations). | |\n\n### GetCredential\n\n```c++\nCredential GetCredential(\n const char *provider_id,\n const char *id_token,\n const char *raw_nonce,\n const char *access_token\n)\n``` \nGenerate a credential for an OAuth2 provider.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `provider_id` | Name of the OAuth2 provider. | | `id_token` | The authentication token (OIDC only). | | `raw_nonce` | The raw nonce associated with the [Auth](/docs/reference/cpp/class/firebase/auth/auth#classfirebase_1_1auth_1_1_auth) credential being created. | | `access_token` | The access token associated with the [Auth](/docs/reference/cpp/class/firebase/auth/auth#classfirebase_1_1auth_1_1_auth) credential to be created, if available. This value may be null. | |"]]