DebugAppCheckProvider can exchange a debug token registered in the Firebase console for a Firebase App Check token. The debug provider is designed to enable testing applications on a simulator or test environment.
NOTE: Do not use the debug provider in applications used by real users.
[[["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::DebugAppCheckProviderFactory Class Reference\n\nfirebase::app_check::DebugAppCheckProviderFactory\n=================================================\n\n\n`#include \u003cdebug_provider.h\u003e`\n\nImplementation of an [AppCheckProviderFactory](/docs/reference/cpp/class/firebase/app-check/app-check-provider-factory#classfirebase_1_1app__check_1_1_app_check_provider_factory) that builds DebugAppCheckProviders.\n\nSummary\n-------\n\nDebugAppCheckProvider can exchange a debug token registered in the Firebase console for a Firebase [App](/docs/reference/cpp/class/firebase/app#classfirebase_1_1_app) Check token. The debug provider is designed to enable testing applications on a simulator or test environment.\n\nNOTE: Do not use the debug provider in applications used by real users.\n\n### Inheritance\n\nInherits from: [firebase::app_check::AppCheckProviderFactory](/docs/reference/cpp/class/firebase/app-check/app-check-provider-factory)\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetInstance](#classfirebase_1_1app__check_1_1_debug_app_check_provider_factory_1acbaff43d7007ba00e7fc1803364e3858)`()` | [DebugAppCheckProviderFactory](/docs/reference/cpp/class/firebase/app-check/debug-app-check-provider-factory#classfirebase_1_1app__check_1_1_debug_app_check_provider_factory)` *` Gets an instance of this class for installation into a [firebase::app_check::AppCheck](/docs/reference/cpp/class/firebase/app-check/app-check#classfirebase_1_1app__check_1_1_app_check) instance. |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CreateProvider](#classfirebase_1_1app__check_1_1_debug_app_check_provider_factory_1a5f9df07e44d3702dd10e0137e90989fd)`(`[App](/docs/reference/cpp/class/firebase/app#classfirebase_1_1_app)` *app) override` | `virtual `[firebase::app_check::AppCheckProvider](/docs/reference/cpp/class/firebase/app-check/app-check-provider#classfirebase_1_1app__check_1_1_app_check_provider)` *` Gets the [AppCheckProvider](/docs/reference/cpp/class/firebase/app-check/app-check-provider#classfirebase_1_1app__check_1_1_app_check_provider) associated with the given [App](/docs/reference/cpp/class/firebase/app#classfirebase_1_1_app) instance, or creates one if none already exists. |\n| [SetDebugToken](#classfirebase_1_1app__check_1_1_debug_app_check_provider_factory_1a9e86d28c9242413103fc2fbf34d45c41)`(const std::string & token)` | `void` Sets the Debug Token to use when communicating with the backend. |\n\nPublic static functions\n-----------------------\n\n### GetInstance\n\n```c++\nDebugAppCheckProviderFactory * GetInstance()\n``` \nGets an instance of this class for installation into a [firebase::app_check::AppCheck](/docs/reference/cpp/class/firebase/app-check/app-check#classfirebase_1_1app__check_1_1_app_check) instance.\n\nPublic functions\n----------------\n\n### CreateProvider\n\n```c++\nvirtual firebase::app_check::AppCheckProvider * CreateProvider(\n App *app\n) override\n``` \nGets the [AppCheckProvider](/docs/reference/cpp/class/firebase/app-check/app-check-provider#classfirebase_1_1app__check_1_1_app_check_provider) associated with the given [App](/docs/reference/cpp/class/firebase/app#classfirebase_1_1_app) instance, or creates one if none already exists. \n\n### SetDebugToken\n\n```c++\nvoid SetDebugToken(\n const std::string & token\n)\n``` \nSets the Debug Token to use when communicating with the backend.\n\nThis should match a debug token set in the Firebase console for your [App](/docs/reference/cpp/class/firebase/app#classfirebase_1_1_app)."]]