Linkedin Login

I have created an issue a week ago about a problem loggin in with Linkedin.
In passport.js from access package the database is queried using
 User.findOne({
        'linkedin.id': profile.id
} 
but when the user is created the linkedin.id is not created.
This is the fix for it.