spee.ch/server/speechPassport/index.js

12 lines
468 B
JavaScript
Raw Normal View History

2018-03-28 01:08:01 +02:00
const passport = require('passport');
const localLoginStrategy = require('./local-login.js');
const localSignupStrategy = require('./local-signup.js');
2018-04-18 20:07:54 +02:00
const { serializeSpeechUser, deserializeSpeechUser } = require('../helpers/authHelpers.js');
2018-03-28 01:08:01 +02:00
passport.deserializeUser(deserializeSpeechUser);
passport.serializeUser(serializeSpeechUser);
passport.use('local-login', localLoginStrategy);
passport.use('local-signup', localSignupStrategy);
module.exports = passport;