A callback handler to be invoked with the token.
// Register a listener
onTokenReceived(message => {
doSomething(message);
});
// Register multiple listeners
onTokenReceived(message => {
doSomething(message);
});
onTokenReceived(message => {
doSomethingElse(message);
});
Registers a listener that will be triggered when a token is received. A token will be received: