From 80451796e1b660c3fd92bf53acd6cd1bc5e2fbec Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Fri, 23 Oct 2020 14:59:45 +0200 Subject: [PATCH] Convert expiry time to milliseconds for set-cookie --- lib/www/server/lib/jwt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/www/server/lib/jwt.js b/lib/www/server/lib/jwt.js index e1ce575..1824507 100644 --- a/lib/www/server/lib/jwt.js +++ b/lib/www/server/lib/jwt.js @@ -10,7 +10,7 @@ function issue (payload, req, res) { } if (res) { - res.cookie("JWT", token, {maxAge: cfg.jwt.options.expiresIn || 0}); + res.cookie("JWT", token, {maxAge: cfg.jwt.options.expiresIn*1000 || 0}); } return token;