AppCheckProvider

public interfaceAppCheckProvider


Interface for a provider that generatesAppCheckTokens. This provider can be called at any time by any Firebase library that depends (optionally or otherwise) onAppCheckTokens. 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.

Summary

Public methods

abstract @NonNullTask<AppCheckToken>

Returns aTask which resolves to a validAppCheckToken or anException in the case that an unexpected failure occurred while getting the token.

Public methods

getToken

abstract @NonNullTask<AppCheckTokengetToken()

Returns aTask which resolves to a validAppCheckToken or anException in the case that an unexpected failure occurred while getting the token.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.