reduce session ttl to 8 hours

This commit is contained in:
orangecoding
2021-01-21 16:14:47 +01:00
parent b2847f6834
commit 4180f700b5

View File

@@ -43,7 +43,7 @@ exports.cookieSession = (userId) => {
name: 'fredy-admin-session',
keys: ['fredy', 'super', 'fancy', 'key', nanoid()],
userId,
maxAge: 24 * 60 * 60 * 1000, // 24 hours
maxAge: 8 * 60 * 60 * 1000, // 8 hours
});
};