You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting below exception when passport route is hit,
Error
at /Users/mambig/Downloads/angular2-node-fb-login-master/backend/node_modules/passport-facebook-token/lib/index.js:155:32
at passBackControl (/Users/mambig/Downloads/angular2-node-fb-login-master/backend/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage.<anonymous> (/Users/mambig/Downloads/angular2-node-fb-login-master/backend/node_modules/oauth/lib/oauth2.js:157:7)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Express route config,
router.route('/auth/facebook').post(passport.authenticate('facebook-token', {session: false}), function(req, res, next) {
if (!req.user) {
return res.send(401, 'User Not Authenticated');
}
// prepare token for API
req.auth = {
id: req.user.id
};
next();
}, generateToken, sendToken);
The text was updated successfully, but these errors were encountered:
Getting below exception when passport route is hit,
Express route config,
The text was updated successfully, but these errors were encountered: