fix: multi 1000 to expires
This commit is contained in:
parent
5818440721
commit
b5d2e7040e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue