OAuth (FB/ Google / Twitter)

Facebook login #

Issue with facebook login: #

You can uncheck 'email' option when logging in with facebook, so if your app relies on getting email from facebook, you'll have to handle the error and enable the rerequestoption when authenticating. In [passport facebook](http://www.passportjs.org/docs/facebook/) it's done as follows:

passport.authenticate('facebook', { scope: ['email'],
  scope: ['email'],
  session: false, 
  session: false,
  authType: 'rerequest',
  })	  
})

Twitter login #

Issue with twitter login: #

You NEED sessions for twitter login, so it won't work on stateless containers like cloud run.