AppCheckProvider

fun interface AppCheckProvider(source)

Produces AppCheckTokens, mirroring com.google.firebase.appcheck.AppCheckProvider. App Check calls it whenever it needs a new token. Implement it, with an AppCheckProviderFactory, to attest the app with a backend of your own: its tokens are used as they are.

Functions

Link copied to clipboard

Returns a new limited-use token, for a backend with replay protection; getToken unless overridden.

Link copied to clipboard
abstract fun getToken(): Task<AppCheckToken>

Returns a new, valid token, or fails when the app cannot be attested.