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. The provider must also supply a token when GetLimitedUseTokenAsync is called. In the case a provider does not support limited use tokens an default implementation returning a non-limited use token is recommended.
Public functions |
|
|---|---|
GetLimitedUseTokenAsync()
|
System.Threading.Tasks.Task< AppCheckToken >
Returns a limited-use AppCheckToken or throws an exception with an error code and error message.
|
GetTokenAsync()
|
System.Threading.Tasks.Task< AppCheckToken >
Returns an AppCheckToken or throws an exception with an error code and error message.
|
Public functions
GetLimitedUseTokenAsync
System.Threading.Tasks.Task< AppCheckToken > GetLimitedUseTokenAsync()
Returns a limited-use AppCheckToken or throws an exception with an error code and error message.
GetTokenAsync
System.Threading.Tasks.Task< AppCheckToken > GetTokenAsync()
Returns an AppCheckToken or throws an exception with an error code and error message.