AppCheckProvider
protocol AppCheckProvider : NSObjectProtocol
Defines the methods required to be implemented by a specific Firebase App Check provider.
-
Returns a new Firebase App Check token.
Declaration
Swift
func getToken() async throws -> FIRAppCheckToken
Parameters
handler
The completion handler. Make sure to call the handler with either a token or an error.
-
Returns a new Firebase App Check token. When implementing this method for your custom provider, the token returned should be suitable for consumption in a limited-use scenario. If you do not implement this method, the getTokenWithCompletion will be invoked instead whenever a limited-use token is requested.
Declaration
Swift
optional func getLimitedUseToken() async throws -> FIRAppCheckToken
Parameters
handler
The completion handler. Make sure to call the handler with either a token or an error.