Merge pull request #46 from memolog/fix-twitter-strategy

Use twitter.id_str instead of twitter.id in twitter strategy, great catch @memolog!
This commit is contained in:
Amos Haviv
2013-08-27 03:12:22 -07:00

View File

@@ -56,7 +56,7 @@ module.exports = function(passport, config) {
},
function(token, tokenSecret, profile, done) {
User.findOne({
'twitter.id': profile.id
'twitter.id_str': profile.id
}, function(err, user) {
if (err) {
return done(err);