Skip to content

Commit

Permalink
Return user profile picture
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebest committed Jun 28, 2012
1 parent 0d209e9 commit acf45c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/passport-twitter/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Strategy.prototype.userProfile = function(token, tokenSecret, params, done) {
profile.id = json.id;
profile.username = json.screen_name;
profile.displayName = json.name;
profile.photos = [{ value: json.profile_image_url_https }];

profile._raw = body;
profile._json = json;
Expand Down

0 comments on commit acf45c5

Please sign in to comment.