From e56693954b368a4616a547d05fdfd3def023dc5c Mon Sep 17 00:00:00 2001 From: Yutaka Yamaguchi Date: Mon, 26 Aug 2013 22:05:45 +0900 Subject: [PATCH] Use twitter.id_str instead of twitter.id because project.id is returned string explicitly by the following change https://github.com/jaredhanson/passport-twitter/commit/d9112c4c0575c64243692a732c2590e8d158bdcf --- config/passport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/passport.js b/config/passport.js index e71d70452b..968a1ffaa1 100755 --- a/config/passport.js +++ b/config/passport.js @@ -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);