You should only echo the “hub.challenge” with a HTTP 200.
Not two things, as you seem to suggest.
For example:
app.route('/webhook/')
.get(function(req, res) {
// challenge
if (req.query['hub.challenge']) {
console.log('TwitchWebhooks: Send back the challenge');
res.send(req.query['hub.challenge']);
}
});