Google is committed to advancing racial equity for Black communities. See how.

AppCheckProvider

public interface AppCheckProvider

Interface for a provider that generates AppCheckTokens. 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 Method Summary

abstract Task<AppCheckToken>
getToken()
Returns a Task which resolves to one of three things: (1) A valid AppCheckToken.

Public Methods

public abstract Task<AppCheckToken> getToken ()

Returns a Task which resolves to one of three things: (1) A valid AppCheckToken. (2) null in the event that a token is unavailable. (3) An Exception in the case that an unexpected failure occurred while getting the token.