ich die email address, 'first-name', 'last-name', 'email-address','public-profile-url' and profile pic
angezeigt E-Mail-Adresse des Linkedin Benutzer mit passportjs
jedoch abrufen bin versucht, wird es nicht angezeigt zu werden. Mein Code ist wie folgt:
passport.use(new LinkedInStrategy({
consumerKey: LINKEDIN_API_KEY,
consumerSecret: LINKEDIN_SECRET_KEY,
callbackURL: "http://localhost:3000/auth/linkedin/callback",
scope: ['r_emailaddress', 'r_basicprofile'],
profileFields: ['id', 'first-name', 'last-name', 'email-address','public-profile-url'],
state: true
},
function(token, refreshToken, profile, done) {
console.log ("PROFILE "+profile.id, token, profile.displayName ,profile.emails[0].value);
process.nextTick(function() {
return done(null,profile);
});
})
);
Frontend auf JADE
ist.
if user
| #{user.id}
| #{user.r_emailaddress}
a(href='/logout') logout with LinkedIn
Hinweis: Die email address
nicht angezeigt bekommen auch nicht 'first-name', 'liest-name', 'E-Mail-Adresse', 'public-profile-url'. Wie kann ich das lösen?