Ir a la consola

firebase::auth::IdTokenListener

This is an abstract class.

#include <auth.h>

Listener called when there is a change in the ID token.

Summary

Override base class method to handle ID token changes. Methods are invoked asynchronously and may be invoked on other threads.

Constructors and Destructors

~IdTokenListener()

Public functions

OnIdTokenChanged(Auth *auth)=0
virtual void
Called when there is a change in the current user's token.

Public functions

OnIdTokenChanged

virtual void OnIdTokenChanged(
  Auth *auth
)=0

Called when there is a change in the current user's token.

  • Right after the listener has been registered
  • When a user signs in
  • When the current user signs out
  • When the current user changes
  • When there is a change in the current user's token

Details
Parameters
auth
Disambiguates which Auth instance the event corresponds to, in the case where you are using more than one at the same time.

~IdTokenListener

virtual  ~IdTokenListener()

Note:: Destruction of the listener automatically calls RemoveIdTokenListener() from the Auths this listener is registered with, if those Auths have not yet been destroyed.