Stay organized with collections
Save and categorize content based on your preferences.
firebase::auth::GoogleAuthProvider
#include <credential.h>
Use an ID token and access token provided by Google to authenticate.
Summary
Public static attributes
|
kProviderId
|
const char *const
The string used to identify this provider.
|
Public static functions
|
GetCredential(const char *id_token, const char *access_token)
|
Generate a credential from the given Google ID token and/or access token.
|
Public static attributes
kProviderId
const char *const kProviderId
The string used to identify this provider.
Public static functions
GetCredential
Credential GetCredential(
const char *id_token,
const char *access_token
)
Generate a credential from the given Google ID token and/or access token.
Details |
Parameters |
id_token
|
Google Sign-In ID token.
|
access_token
|
Google Sign-In access token.
|
|
Returns
|
|
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 2024-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[],null,["# firebase::auth::GoogleAuthProvider Class Reference\n\nfirebase::auth::GoogleAuthProvider\n==================================\n\n\n`#include \u003ccredential.h\u003e`\n\nUse an ID token and access token provided by Google to authenticate.\n\nSummary\n-------\n\n| ### Public static attributes ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [kProviderId](#classfirebase_1_1auth_1_1_google_auth_provider_1af27fc68b0be005bf9a1035d6eac9f6a5) | `const char *const` The string used to identify this provider. |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCredential](#classfirebase_1_1auth_1_1_google_auth_provider_1ae8e704941c24348f4d04f5d77a059d95)`(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 from the given Google ID token and/or access token. |\n\nPublic static attributes\n------------------------\n\n### kProviderId\n\n```c++\nconst char *const kProviderId\n``` \nThe string used to identify this provider.\n\nPublic static functions\n-----------------------\n\n### GetCredential\n\n```c++\nCredential GetCredential(\n const char *id_token,\n const char *access_token\n)\n``` \nGenerate a credential from the given Google ID token and/or access token.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------| | `id_token` | Google Sign-In ID token. | | `access_token` | Google Sign-In access token. | |\n| **Returns** | New [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential). |"]]