Merge pull request #47 from 67P/chore/fix_warnings
Fix warnings from express session
This commit is contained in:
commit
571de43aa8
@ -197,7 +197,12 @@ module.exports = async function(robot, kredits) {
|
||||
}
|
||||
};
|
||||
|
||||
robot.router.use(session({ secret: process.env.KREDITS_SESSION_SECRET || 'grant' }));
|
||||
robot.router.use(session({
|
||||
secret: process.env.KREDITS_SESSION_SECRET || 'grant',
|
||||
resave: false,
|
||||
saveUninitialized: false
|
||||
}));
|
||||
|
||||
robot.router.use('/kredits/signup', grant(grantConfig));
|
||||
|
||||
robot.router.get('/kredits/signup/github', async (req, res) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user