fix(facebook): include email

This commit is contained in:
Matteo Pagliazzi
2018-05-25 18:54:50 +02:00
parent 557212b549
commit 821f84dbe8

View File

@@ -19,6 +19,7 @@ passport.deserializeUser((obj, done) => done(null, obj));
passport.use(new FacebookStrategy({
clientID: nconf.get('FACEBOOK_KEY'),
clientSecret: nconf.get('FACEBOOK_SECRET'),
profileFields: ['email'],
// callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback"
}, (accessToken, refreshToken, profile, done) => done(null, profile)));