diff --git a/config/server.config.js b/config/server.config.js index bbbe4de..0385e62 100644 --- a/config/server.config.js +++ b/config/server.config.js @@ -33,7 +33,12 @@ const server_config = { * The secret used to encrypt the session. * This should be set in the environment. */ - secret: env("SECRET", "changeme") + secret: env("SECRET", "changeme"), + + /* + * Time in ms of the max age of the session cookie. + */ + max_age: env("SESSION_MAX_AGE", 1000 * 24 * 60 * 60 * 2), // 2 days by default }, uploads: { diff --git a/package.json b/package.json index 68df8d4..c357ad3 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "flitter-orm": "^0.4.0", "flitter-upload": "^0.8.1", "jsonwebtoken": "^8.5.1", - "libflitter": "^0.56.0", + "libflitter": "^0.57.1", "markdown": "^0.5.0", "ncp": "^2.0.0", "rimraf": "^3.0.2", diff --git a/yarn.lock b/yarn.lock index 4dc6046..907416b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2455,10 +2455,10 @@ leven@^1.0.2: resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3" integrity sha1-kUS27ryl8dBoAWnxpncNzqYLdcM= -libflitter@^0.56.0: - version "0.56.0" - resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.56.0.tgz#1ff04b7749d55e7a011149b8a6cae561b8e800d8" - integrity sha512-AwCmTZaKPOQqDWiASvxMuWaexBYxuKpY/QMVnrVdW/VXT5eW0rIf+bJy6RdQGiH8GzlB3442+U4yl4VWNfeKsQ== +libflitter@^0.57.1: + version "0.57.1" + resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.57.1.tgz#e605333a5e38cadac1203e4be8ea685c5520472b" + integrity sha512-bEu02HZjcAp53A2xnE0hz/LVhkErvnqaKmlNOqvJJaGMjKClfVuqJlr9bFfWU84qXL9SaHWd06P3nxIVKTvFIw== dependencies: colors "^1.3.3" connect-mongodb-session "^2.2.0"