Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AppCheck.IAppCheckProvider
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
GetTokenAsync
System.Threading.Tasks.Task< AppCheckToken > GetTokenAsync()
Returns an AppCheckToken or throws an exception with an error code and error message.
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 2023-05-09 UTC.
[null,null,["Last updated 2023-05-09 UTC."],[],[],null,["Firebase.AppCheck.IAppCheckProvider\n\nInterface for a provider that generates [AppCheckToken](/docs/reference/unity/struct/firebase/app-check/app-check-token#struct_firebase_1_1_app_check_1_1_app_check_token)s.\n\nSummary\n\nThis provider can be called at any time by any [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) library that depends (optionally or otherwise) on [AppCheckToken](/docs/reference/unity/struct/firebase/app-check/app-check-token#struct_firebase_1_1_app_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\nPublic functions \n\nGetTokenAsync \n\n```c#\nSystem.Threading.Tasks.Task\u003c AppCheckToken \u003e GetTokenAsync()\n``` \nReturns an [AppCheckToken](/docs/reference/unity/struct/firebase/app-check/app-check-token#struct_firebase_1_1_app_check_1_1_app_check_token) or throws an exception with an error code and error message."]]