[[["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::GameCenterAuthProvider Class Reference\n\nfirebase::auth::GameCenterAuthProvider\n======================================\n\n\n`#include \u003ccredential.h\u003e`\n\nGameCenter (Apple) auth provider.\n\nSummary\n-------\n\n| ### Public static attributes ||\n|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [kProviderId](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a9139fca14c3e2daa5777221c1d79a358) | `const char *const` The string used to identify this provider. |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCredential](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3)`()` | [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future)`\u003c `[Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential)` \u003e` Generate a credential from GameCenter for the current user. |\n| [GetCredentialLastResult](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a67f2b1e97aeeec6ebbcc082b64473c6a)`()` | [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future)`\u003c `[Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential)` \u003e` Get the result of the most recent [GetCredential()](/docs/reference/cpp/class/firebase/auth/game-center-auth-provider#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3) call. |\n| [IsPlayerAuthenticated](#classfirebase_1_1auth_1_1_game_center_auth_provider_1ab56ee9c4d887bc7207c03579dd6a5796)`()` | `bool` Tests to see if the current user is signed in to GameCenter. |\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++\nFuture\u003c Credential \u003e GetCredential()\n``` \nGenerate a credential from GameCenter for the current user.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | a [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future) that will be fulfilled with the resulting credential. |\n\n### GetCredentialLastResult\n\n```c++\nFuture\u003c Credential \u003e GetCredentialLastResult()\n``` \nGet the result of the most recent [GetCredential()](/docs/reference/cpp/class/firebase/auth/game-center-auth-provider#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3) call.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | an object which can be used to retrieve the [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential). |\n\n### IsPlayerAuthenticated\n\n```c++\nbool IsPlayerAuthenticated()\n``` \nTests to see if the current user is signed in to GameCenter.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------|\n| **Returns** | true if the user is signed in, false otherwise. |"]]