From 005caeb1aba4402e861adb6ec51e77c45b94b65d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 5 May 2024 18:13:19 -0400 Subject: [PATCH] Change cookie expiration to 90 days --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 3ae440a0b..822f02f05 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -226,7 +226,7 @@ export const apiUrl = isLocal ? serverUrl : 'api'; export function setCookie(cName: string, cValue: string): void { const expiration = new Date(); - expiration.setTime(new Date().getTime() + 3600000 * 24 * 7); + expiration.setTime(new Date().getTime() + 3600000 * 24 * 30 * 3/*7*/); document.cookie = `${cName}=${cValue};SameSite=Strict;path=/;expires=${expiration.toUTCString()}`; }