public interface InternalAppCheckTokenProvider

Public Method Summary

abstract void
addAppCheckTokenListener(AppCheckTokenListener listener)
Registers a listener to changes in the token state.
abstract Task<AppCheckTokenResult>
getToken(boolean forceRefresh)
Requests an AppCheckTokenResult from the installed AppCheckFactory.
abstract void
removeAppCheckTokenListener(AppCheckTokenListener listener)
Unregisters a listener to changes in the token state.

Public Methods

public abstract void addAppCheckTokenListener (AppCheckTokenListener listener)

Registers a listener to changes in the token state. There can be more than one listener registered at the same time for one or more FirebaseAppAuth instances. The listeners call back on the UI thread whenever the current token associated with this FirebaseAppCheck changes.

Parameters
listener

public abstract Task<AppCheckTokenResult> getToken (boolean forceRefresh)

Requests an AppCheckTokenResult from the installed AppCheckFactory. This will always return a successful task, with an AppCheckTokenResult that contains either a valid token, or a dummy token and an error string.

Parameters
forceRefresh

public abstract void removeAppCheckTokenListener (AppCheckTokenListener listener)

Unregisters a listener to changes in the token state.

Parameters
listener