Closed terryds closed 5 years ago
I think this can probably be closed:
"It turns out I forget to call next() on my model pre-save. I spend 'bout two days figuring this out. So, if anyone reading this has the same problem, make sure you call next()"
https://stackoverflow.com/questions/51773343/mongoose-promise-with-bluebird-error-with-passport-js
closing.
This is the error:
This is my passport.js:
If I don't use save(), and just return a message directly (like return res.json({msg: "Hi"}) ), it goes without error. Please help me