You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const userSchema = new mongoose.Schema({
//schema here
});
userSchema.plugin(passportLocalMongoose, {usernameQueryFields: ["email"]});
const User = new mongoose.model('User',userSchema);
module.exports = User;
this is user model, error occuring while using 'passport-magic-login' does anyone have solution?
I tried almost everything including downgrading version.
The text was updated successfully, but these errors were encountered:
const mongoose = require('mongoose');
const passportLocalMongoose = require('passport-local-mongoose');
const userSchema = new mongoose.Schema({
//schema here
});
userSchema.plugin(passportLocalMongoose, {usernameQueryFields: ["email"]});
const User = new mongoose.model('User',userSchema);
module.exports = User;
this is user model, error occuring while using 'passport-magic-login' does anyone have solution?
I tried almost everything including downgrading version.
The text was updated successfully, but these errors were encountered: