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\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\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\nPublic functions \n\nGetToken \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```"]]