Firebase. AppCheck. FirebaseAppCheck
Firebase App Check object.
Summary
App Check helps protect your API resources from abuse by preventing unauthorized clients from accessing your backend resources.
With App Check, devices running your app will use an AppCheckProvider that attests to one or both of the following:
- Requests originate from your authentic app
- Requests originate from an authentic, untampered device
Properties |
|
---|---|
DefaultInstance
|
static FirebaseAppCheck
Gets the instance of FirebaseAppCheck associated with the default FirebaseApp instance.
|
TokenChanged
|
EventHandler< TokenChangedEventArgs >
|
Public static functions |
|
---|---|
GetInstance(FirebaseApp app)
|
Gets the instance of FirebaseAppCheck associated with the given FirebaseApp instance.
|
SetAppCheckProviderFactory(IAppCheckProviderFactory factory)
|
void
Installs the given IAppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance.
|
Public functions |
|
---|---|
GetAppCheckTokenAsync(bool forceRefresh)
|
System.Threading.Tasks.Task< AppCheckToken >
|
SetTokenAutoRefreshEnabled(bool isTokenAutoRefreshEnabled)
|
void
Sets the {.
|
Properties
DefaultInstance
static FirebaseAppCheck DefaultInstance
Gets the instance of FirebaseAppCheck associated with the default FirebaseApp instance.
TokenChanged
EventHandler< TokenChangedEventArgs > TokenChanged
Public static functions
GetInstance
FirebaseAppCheck GetInstance( FirebaseApp app )
Gets the instance of FirebaseAppCheck associated with the given FirebaseApp instance.
SetAppCheckProviderFactory
void SetAppCheckProviderFactory( IAppCheckProviderFactory factory )
Installs the given IAppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance.
Automatic token refreshing will only occur if the global isDataCollectionDefaultEnabled flag is set to true. To allow automatic token refreshing for Firebase App Check without changing the isDataCollectionDefaultEnabled flag for other Firebase SDKs, call SetTokenAutoRefreshEnabled(bool) after installing the factory.
This method should be called before initializing the Firebase App.
Public functions
GetAppCheckTokenAsync
System.Threading.Tasks.Task< AppCheckToken > GetAppCheckTokenAsync( bool forceRefresh )
SetTokenAutoRefreshEnabled
void SetTokenAutoRefreshEnabled( bool isTokenAutoRefreshEnabled )
Sets the {.
isTokenAutoRefreshEnabled} flag.