Change cookie expiration to 90 days

pull/515/head
Flashfyre 2024-05-05 18:13:19 -04:00
parent e6fd331931
commit 005caeb1ab
1 changed files with 1 additions and 1 deletions

View File

@ -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()}`;
}