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.

  • Its triggers from here
  • passport.authenticate('linkedin', { scope: ['r_basicprofile', 'r_emailaddress']})(req, res);

  • after trigger code move in this section
  • 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); }); }));

    链接地址: http://www.djcxy.com/p/83216.html

    上一篇: Three.js相机控制空间游戏

    下一篇: 在passport.js的帮助下使用linkedin登录网站