Skip to content

Commit

Permalink
Revert "Merge commit from fork"
Browse files Browse the repository at this point in the history
This reverts commit 0b3bcc9.
  • Loading branch information
u1-liquid committed Feb 1, 2025
1 parent 7619c50 commit 3a024e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/frontend/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ export async function removeAccount(idOrToken: Account['id']) {
}

function fetchAccount(token: string, id?: string, forceShowDialog?: boolean): Promise<Account> {
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`, {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3a024e8

Please sign in to comment.