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.
Public functions
|
GetToken(std::function< void(AppCheckToken, int, const std::string &)> completion_callback)=0
|
virtual void
Fetches an AppCheckToken and then calls the provided callback method with the token or with an error code and error message.
|
Public functions
GetToken
virtual void GetToken(
std::function< void(AppCheckToken, int, const std::string &)> completion_callback
)=0
Fetches an AppCheckToken and then calls the provided callback method with the token or with an error code and error message.
~AppCheckProvider
virtual ~AppCheckProvider()=0
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::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```"]]