Fix warnings from express session
This commit is contained in:
		
							parent
							
								
									cecc632620
								
							
						
					
					
						commit
						50002194c5
					
				@ -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