Login website using linkedin with the help of passport.js
I am trying to login my website using linkedin with the help of passport.js, but linkedin api not returning anything after login as ai have console to show proifle but it is going in this section. Please suggest.
passport.authenticate('linkedin', { scope: ['r_basicprofile', 'r_emailaddress']})(req, res);
var LinkedInStrategy = require('passport-linkedin-oauth2').Strategy; passport.use(new LinkedInStrategy({
clientID: 'asddasas',
clientSecret: 'fdasasdasdas',
callbackURL: 'http://localhost:1337/linkedin-callback',
scope: ['r_basicprofile','r_emailaddress'] },
function(req, token, refreshToken, profile, done) {
process.nextTick(function () {
console.log("profile====>", profile);
return done(null, profile); }); }));
上一篇: Three.js相机控制空间游戏