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

Commit e566939

Browse files
committed
Use twitter.id_str instead of twitter.id because project.id is returned string explicitly by the following change
jaredhanson/passport-twitter@d9112c4
1 parent 3b4cfbb commit e566939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/passport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = function(passport, config) {
5656
},
5757
function(token, tokenSecret, profile, done) {
5858
User.findOne({
59-
'twitter.id': profile.id
59+
'twitter.id_str': profile.id
6060
}, function(err, user) {
6161
if (err) {
6262
return done(err);

0 commit comments

Comments
 (0)