I am using Mongoose-local-passport & passport I have 02 collections, User1 and User2 I have created their strategies using :
passport.use(User1.createStrategy())
passport.use(User2.createStrategy())
I want to fill the two collections but I only can fill the first one User1, I understand that with createStrategy I can only define a startegy once, can anyone tell me how to manage to create 02 diffrent strategies for 02 different collections,