Refactor task formatting and extend session cookie expiration to one month

This commit is contained in:
2025-01-29 21:31:11 +01:00
parent dfa616fc52
commit 5413323a3c
2 changed files with 7 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ app.use(session({
secret: process.env.SESSION_SECRET || 'default_secret', // Use a strong secret in production
resave: false,
saveUninitialized: false,
cookie: { secure: false, maxAge: 24 * 60 * 60 * 1000 } // 1 day
cookie: { secure: false, maxAge: 30 * 24 * 60 * 60 * 1000 } // 1 month
}));
app.use('/', authRouter);