emit new token event when generating a new token