Open freelance-work2019 opened 5 years ago
Thanks for the tip! I’ve been meaning to look into the FB issue but have been busy with school.
Ok
For removing deprecated warnings, we need to do 2 things.
For removing this: the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object
At the config/environment/index.js, mongodb' option needs to be changed as top level json like following:
// MongoDB connection options
mongo: {
db: {
safe: true
}
},
For removing this: DeprecationWarning: Buffer() is deprecated due to security and usability issues.
At the user.model.js, we need to change like followings:
var salt = Buffer.alloc(this.salt, 'base64');
Thank you.
It does not send email ID when login with FB. Please add this line.
profileFields: ['id', 'emails', 'name']
in the passport.js Thank you.