Question about the number of params in the callback function of the strategy
Ks89 opened this issue · 1 comments
Ks89 commented
Hi, I have a question.
If I use:
function(req, token, tokenSecret, profile, cb) {
console.log("called twitter strategy");
return cb(null, profile);
}
i can read the profile infos, but I use only: function(token, tokenSecret, profile, cb) I can't (WITH only 4 params).
Why? I'm confused. I'm using passport for other strategies like google, facebook and so on, and I'm using only 4 parameters.
Thanks.
Ks89 commented
nono, wait I'm an idiot...I made a mistake :) I'm sorry