From 50002194c5e0493c8ad641a900d90d2c40f821b7 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 1 Sep 2019 17:04:19 +0200 Subject: [PATCH] Fix warnings from express session --- integrations/github.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/integrations/github.js b/integrations/github.js index b04fb29..defc258 100644 --- a/integrations/github.js +++ b/integrations/github.js @@ -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) => {