2018-03-28 01:08:01 +02:00
|
|
|
const passport = require('passport');
|
2018-04-27 03:50:47 +02:00
|
|
|
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');
|
2018-03-28 01:08:01 +02:00
|
|
|
|
2018-04-27 03:50:47 +02:00
|
|
|
passport.deserializeUser(deserializeUser);
|
|
|
|
passport.serializeUser(serializeUser);
|
2018-03-28 01:08:01 +02:00
|
|
|
passport.use('local-login', localLoginStrategy);
|
|
|
|
passport.use('local-signup', localSignupStrategy);
|
|
|
|
|
|
|
|
module.exports = passport;
|