Stay organized with collections
Save and categorize content based on your preferences.
firebase::app_check::AppCheckProvider
This is an abstract class.
#include <app_check.h>
Interface for a provider that generates AppCheckTokens.
Summary
This provider can be called at any time by any Firebase library that depends (optionally or otherwise) on AppCheckTokens. This provider is responsible for determining if it can create a new token at the time of the call and returning that new token if it can.
[[["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::app_check::AppCheckProvider Class Reference\n\nfirebase::app_check::AppCheckProvider\n=====================================\n\n\n**This is an abstract class.**\n\n\n`#include \u003capp_check.h\u003e`\n\nInterface for a provider that generates [AppCheckToken](/docs/reference/cpp/struct/firebase/app-check/app-check-token#structfirebase_1_1app__check_1_1_app_check_token)s.\n\nSummary\n-------\n\nThis provider can be called at any time by any Firebase library that depends (optionally or otherwise) on [AppCheckToken](/docs/reference/cpp/struct/firebase/app-check/app-check-token#structfirebase_1_1app__check_1_1_app_check_token)s. This provider is responsible for determining if it can create a new token at the time of the call and returning that new token if it can.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~AppCheckProvider](#classfirebase_1_1app__check_1_1_app_check_provider_1a88ddf70313c8de8fa8b137a3593504bc)`()` ||\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetToken](#classfirebase_1_1app__check_1_1_app_check_provider_1a1bfe8c92a50c664c35063f14c31a5647)`(std::function\u003c void(`[AppCheckToken](/docs/reference/cpp/struct/firebase/app-check/app-check-token#structfirebase_1_1app__check_1_1_app_check_token)`, int, const std::string &)\u003e completion_callback)=0` | `virtual void` Fetches an [AppCheckToken](/docs/reference/cpp/struct/firebase/app-check/app-check-token#structfirebase_1_1app__check_1_1_app_check_token) and then calls the provided callback method with the token or with an error code and error message. |\n\nPublic functions\n----------------\n\n### GetToken\n\n```c++\nvirtual void GetToken(\n std::function\u003c void(AppCheckToken, int, const std::string &)\u003e completion_callback\n)=0\n``` \nFetches an [AppCheckToken](/docs/reference/cpp/struct/firebase/app-check/app-check-token#structfirebase_1_1app__check_1_1_app_check_token) and then calls the provided callback method with the token or with an error code and error message. \n\n### \\~AppCheckProvider\n\n```c++\nvirtual ~AppCheckProvider()=0\n```"]]