Created
June 24, 2018 11:34
-
-
Save AndrejGajdos/4fadedb8ac1f504c6a54775b18b77beb to your computer and use it in GitHub Desktop.
Initialization of passport. Whole file is available https://github.com/AndrejGajdos/auth-flow-spa-node-react/blob/master/script/server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const passport = require('koa-passport'); | |
app.use(passport.initialize()); | |
app.use(passport.session()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment