From ee034a7252a3a5c7fad8821bcf308eb8e7d83e28 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 5 May 2026 06:51:07 +0800 Subject: [PATCH] =?UTF-8?q?cookie=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/simapi.core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simapi.core.ts b/src/simapi.core.ts index fd6d1e7..fcaf676 100644 --- a/src/simapi.core.ts +++ b/src/simapi.core.ts @@ -185,12 +185,12 @@ export class SimApiCore { setToken(token: string): void { const name = this.auth.token_name - document.cookie = `${name}=${token}; path=/; secure; samesite=none` + document.cookie = `${name}=${token}; path=/; max-age=315360000; samesite=none` } removeToken(): void { const name = this.auth.token_name - document.cookie = `${name}=; path=/; max-age=0; secure; samesite=none` + document.cookie = `${name}=; path=/; max-age=0; samesite=none` }