mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:57:08 +00:00
Convert expiry time to milliseconds for set-cookie
This commit is contained in:
@@ -10,7 +10,7 @@ function issue (payload, req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (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;
|
return token;
|
||||||
|
|||||||
Reference in New Issue
Block a user