how to handle passport-facebook callback in angular client?
问题 I am developing a MEAN application. I am using passport for authentication- local, facebook and google strategies. I am using angularjs client. All the routing is handled at client. I am only consuming server data apis. When using passport-facebook strategy, I am using below code at node server as per passport docs. app.get('/auth/facebook',passport.authenticate('facebook-auth', { scope : ['email'] })); app.get('/auth/facebook/callback',passport.authenticate('facebook-auth', { successRedirect