mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(facebook): include email
This commit is contained in:
@@ -19,6 +19,7 @@ passport.deserializeUser((obj, done) => done(null, obj));
|
|||||||
passport.use(new FacebookStrategy({
|
passport.use(new FacebookStrategy({
|
||||||
clientID: nconf.get('FACEBOOK_KEY'),
|
clientID: nconf.get('FACEBOOK_KEY'),
|
||||||
clientSecret: nconf.get('FACEBOOK_SECRET'),
|
clientSecret: nconf.get('FACEBOOK_SECRET'),
|
||||||
|
profileFields: ['email'],
|
||||||
// callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback"
|
// callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback"
|
||||||
}, (accessToken, refreshToken, profile, done) => done(null, profile)));
|
}, (accessToken, refreshToken, profile, done) => done(null, profile)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user