app.get('/auth/trakt/callback', 
  passport.authenticate('trakt', { failureRedirect: '/login' }),
  function(req, res) {
    res.redirect('/');
  });