Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AppCheck.DebugAppCheckProviderFactory
Implementation of an IAppCheckProviderFactory 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.AppCheck.IAppCheckProviderFactoryProperties
Public functions
SetDebugToken
void SetDebugToken(
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-08-07 UTC.
[null,null,["Last updated 2024-08-07 UTC."],[],[],null,["# Firebase.AppCheck.DebugAppCheckProviderFactory Class Reference\n\nFirebase.AppCheck.DebugAppCheckProviderFactory\n==============================================\n\nImplementation of an [IAppCheckProviderFactory](/docs/reference/unity/interface/firebase/app-check/i-app-check-provider-factory#interface_firebase_1_1_app_check_1_1_i_app_check_provider_factory) that builds DebugAppCheckProviders.\n\nSummary\n-------\n\nDebugAppCheckProvider can exchange a debug token registered in the [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) console for a [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) 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.AppCheck.IAppCheckProviderFactory](/docs/reference/unity/interface/firebase/app-check/i-app-check-provider-factory)\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Instance](#class_firebase_1_1_app_check_1_1_debug_app_check_provider_factory_1a75f262d05f1eaeba39f2c3fecc8eed65) | `static `[DebugAppCheckProviderFactory](/docs/reference/unity/class/firebase/app-check/debug-app-check-provider-factory#class_firebase_1_1_app_check_1_1_debug_app_check_provider_factory) Gets an instance of this class for installation into a [FirebaseAppCheck](/docs/reference/unity/class/firebase/app-check/firebase-app-check#class_firebase_1_1_app_check_1_1_firebase_app_check) instance. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CreateProvider](#class_firebase_1_1_app_check_1_1_debug_app_check_provider_factory_1a4c9e012d058888a3be56e8f4ec11d9e3)`(`[FirebaseApp](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app)` app)` | [IAppCheckProvider](/docs/reference/unity/interface/firebase/app-check/i-app-check-provider#interface_firebase_1_1_app_check_1_1_i_app_check_provider) Gets the [IAppCheckProvider](/docs/reference/unity/interface/firebase/app-check/i-app-check-provider#interface_firebase_1_1_app_check_1_1_i_app_check_provider) associated with the given [FirebaseApp](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app) instance, or creates one if none already exists. |\n| [SetDebugToken](#class_firebase_1_1_app_check_1_1_debug_app_check_provider_factory_1a98ac9cca533911d3072db4ef775eca8d)`(string token)` | `void` Sets the Debug Token to use when communicating with the backend. |\n\nProperties\n----------\n\n### Instance\n\n```c#\nstatic DebugAppCheckProviderFactory Instance\n``` \nGets an instance of this class for installation into a [FirebaseAppCheck](/docs/reference/unity/class/firebase/app-check/firebase-app-check#class_firebase_1_1_app_check_1_1_firebase_app_check) instance.\n\nPublic functions\n----------------\n\n### CreateProvider\n\n```c#\nIAppCheckProvider CreateProvider(\n FirebaseApp app\n)\n``` \nGets the [IAppCheckProvider](/docs/reference/unity/interface/firebase/app-check/i-app-check-provider#interface_firebase_1_1_app_check_1_1_i_app_check_provider) associated with the given [FirebaseApp](/docs/reference/unity/class/firebase/firebase-app#class_firebase_1_1_firebase_app) instance, or creates one if none already exists. \n\n### SetDebugToken\n\n```c#\nvoid SetDebugToken(\n 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](/docs/reference/unity/namespace/firebase#namespace_firebase) console for your App."]]