Stay organized with collections
Save and categorize content based on your preferences.
firebase::app_check::DebugAppCheckProviderFactory
#include <debug_provider.h>
Implementation of an AppCheckProviderFactory that builds DebugAppCheckProviders.
Summary
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.
Inheritance
Inherits from:
firebase::app_check::AppCheckProviderFactory
Public functions
|
CreateProvider(App *app) override
|
Gets the AppCheckProvider associated with the given App instance, or creates one if none already exists.
|
SetDebugToken(const std::string & token)
|
void
Sets the Debug Token to use when communicating with the backend.
|
Public static functions
Public functions
SetDebugToken
void SetDebugToken(
const std::string & token
)
Sets the Debug Token to use when communicating with the backend.
This should match a debug token set in the Firebase console for your App.
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::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)."]]