I need to pass an additional variable to the login with Twitter of passport , it would be something like this:
app.get('/twitter',
function (req, res) {
var variableallegar = req.query.idunico;
}, passport.authentication('twitter');
app.get('/twitter/callback', function (req.res) {
//ACA ME LLEGA EL PERFIL DEL USUARIO
//quisiera que tambien me llege,
//variableallegar
});
How could I do it?