saintedlama / passport-local-mongoose

Passport-Local Mongoose is a Mongoose plugin that simplifies building username and password login with Passport
MIT License
1.18k stars 294 forks source link

Mongoose 7 does not support some callbacks like in 6.x version and it cause exceptions in passport-local-mongoose #369

Closed kubawasikowski closed 1 year ago

kubawasikowski commented 1 year ago

Hello, recent 7 version of mongoose changed quite a lot and passport-local-mongoose have error with latest version: MongooseError: Query.prototype.exec() no longer accepts a callback at model.Query.exec (\node_modules\mongoose\lib\query.js:4281:11)

Thank You for help Best regards

Patrick-Voorhoeve commented 1 year ago

Having the same issue. I've seen suggestions to revert back to 6.1 but this won't work for me. Any other workarounds?