firebase::app_check::AppCheckProvider

This is an abstract class.

#include <app_check.h>

Interface for a provider that generates AppCheckTokens.

Summary

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.

Constructors and Destructors

~AppCheckProvider()

Public functions

GetLimitedUseToken(std::function< void(AppCheckToken, int, const std::string &)> completion_callback)
virtual void
Fetches an AppCheckToken suitable for consumption in limited-use scenarios and then calls the provided callback function with the token or with an error code and error message.
GetToken(std::function< void(AppCheckToken, int, const std::string &)> completion_callback)=0
virtual void
Fetches an AppCheckToken and then calls the provided callback method with the token or with an error code and error message.

Public functions

GetLimitedUseToken

virtual void GetLimitedUseToken(
  std::function< void(AppCheckToken, int, const std::string &)> completion_callback
)

Fetches an AppCheckToken suitable for consumption in limited-use scenarios and then calls the provided callback function with the token or with an error code and error message.

If you do not implement this method, the default implementation invokes the GetToken method whenever a limited-use token is requested.

GetToken

virtual void GetToken(
  std::function< void(AppCheckToken, int, const std::string &)> completion_callback
)=0

Fetches an AppCheckToken and then calls the provided callback method with the token or with an error code and error message.

~AppCheckProvider

virtual  ~AppCheckProvider()=0