Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook login does not send email ID #3

Open
freelance-work2019 opened this issue Mar 19, 2019 · 2 comments
Open

Facebook login does not send email ID #3

freelance-work2019 opened this issue Mar 19, 2019 · 2 comments

Comments

@freelance-work2019
Copy link

It does not send email ID when login with FB.
Please add this line.
profileFields: ['id', 'emails', 'name'] in the passport.js
Thank you.

@1hella
Copy link
Owner

1hella commented Mar 19, 2019

Thanks for the tip! I’ve been meaning to look into the FB issue but have been busy with school.

@freelance-work2019
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants