fix: multi 1000 to expires

This commit is contained in:
diced 2021-09-25 18:03:06 -07:00
parent 5818440721
commit b5d2e7040e
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E

View file

@ -130,7 +130,7 @@ export const setCookie = (
) => { ) => {
if ('maxAge' in options) { if ('maxAge' in options) {
options.expires = new Date(Date.now() + options.maxAge); options.expires = new Date(Date.now() + options.maxAge * 1000);
options.maxAge /= 1000; options.maxAge /= 1000;
} }