Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Use twitter.id_str instead of twitter.id because project.id is return…
Browse files Browse the repository at this point in the history
…ed string explicitly by the following change

jaredhanson/passport-twitter@d9112c4
  • Loading branch information
memolog committed Aug 26, 2013
1 parent 3b4cfbb commit e566939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e566939

Please sign in to comment.