Passport js typo

module.exports = passport => {
passport.use(new JwtStrategy(options, (payload, done) => {
User.findById(jwt_payload.id)
.then(user => {
if (user) {
// return the user to the frontend
return done(null, user);
}
// return false since there is no user
return done(null, false);
})
.catch(err => console.log(err));
}));
};

is jwt_payload.id supposed to be payload.id?

Hi @fuzzymuffin,

Can you provide more information about which course and assignment you’re working on? Are you seeing errors in code or specs, or are you curious about what is happening?

Either way, you’ll probably be able to get quicker and more accurate help by posting in the Slack channel for the course you’re working on. app-academy-online.slack.com

If you’re just reporting a typo, there’s a form here: https://goo.gl/forms/OTcpCsE4TCykPkn42