Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

passport local mongoose

const User = require('./models/user'); 
// CHANGE: USE "createStrategy" INSTEAD OF "authenticate"
passport.use(User.createStrategy()); 
passport.serializeUser(User.serializeUser());
passport.deserializeUser(User.deserializeUser());
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #passport #local #mongoose
ADD COMMENT
Topic
Name
6+9 =