re: Building a NodeJS Web App Using PassportJS for Authentication VIEW POST

FULL DISCUSSION
 

Thank you very much for help. The article is clear to understand.

I am getting this error:
\learningPassportJS\models\index.js:31
db[model.name] = model;
^
TypeError: Cannot read property 'name' of undefined

Not sure what I'm missing :(

code of conduct - report abuse