diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 11:34:05 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 11:34:05 +0200 |
commit | 4907c23e0dffb295cb81bc10958ff029243d4d64 (patch) | |
tree | e1e44b4baef52d73f8543d26bbfb290a147e3032 /config/passport.js | |
parent | authCallback now checks for user email (diff) | |
download | Divid-4907c23e0dffb295cb81bc10958ff029243d4d64.tar.gz |
facebookauth now logs profile to console
Diffstat (limited to '')
-rw-r--r-- | config/passport.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/passport.js b/config/passport.js index 9518409..68d5204 100644 --- a/config/passport.js +++ b/config/passport.js @@ -52,6 +52,7 @@ module.exports = function (passport, config) { // looks up the user in the database. Will create the user if it does not exist User.findOne({ 'facebook.id': profile.id }, function(err, user) { if(err) return done(err); + console.log(profile); if (!user) { user = new User({ name: profile.displayName |