Pass token entity to callback and handle errors.