From 3a024e89d82d1e7613cceed9967cb762b40633ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 2 Feb 2025 01:01:39 +0900 Subject: [PATCH] Revert "Merge commit from fork" This reverts commit 0b3bcc95fd399532a7da88804563cf1251a5cb81. --- packages/frontend/src/account.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts index 0b93f7ada..6ef819aaa 100644 --- a/packages/frontend/src/account.ts +++ b/packages/frontend/src/account.ts @@ -119,9 +119,6 @@ export async function removeAccount(idOrToken: Account['id']) { } function fetchAccount(token: string, id?: string, forceShowDialog?: boolean): Promise { - document.cookie = "token=; path=/; max-age=0"; - document.cookie = `token=${token}; path=/queue; max-age=86400; SameSite=Strict; Secure`; // bull dashboardの認証とかで使う - return new Promise((done, fail) => { const initiateTime = Date.now(); window.fetch(`${apiUrl}/i`, { @@ -239,6 +236,7 @@ export async function login(token: Account['token'], redirect?: string) { throw reason; }); miLocalStorage.setItem('account', JSON.stringify(me)); + document.cookie = `token=${token}; path=/; max-age=31536000`; // bull dashboardの認証とかで使う await addAccount(me.id, token); if (redirect) {