12 lines
497 B
JavaScript
12 lines
497 B
JavaScript
const passport = require('passport');
|
|
const localLoginStrategy = require('./utils/local-login.js');
|
|
const localSignupStrategy = require('./utils/local-signup.js');
|
|
const serializeUser = require('./utils/serializeUser.js');
|
|
const deserializeUser = require('./utils/deserializeUser.js');
|
|
|
|
passport.deserializeUser(deserializeUser);
|
|
passport.serializeUser(serializeUser);
|
|
passport.use('local-login', localLoginStrategy);
|
|
passport.use('local-signup', localSignupStrategy);
|
|
|
|
module.exports = passport;
|