From 2496b385ce9d48a8eecc48a31b79f7fc637c5e2e Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 8 Nov 2022 21:59:13 +0100 Subject: [PATCH] fix login This is a fixup commit to b2c800e65497467295dfcfbcd05faa9d1c8f6ce6. --- packages/client/src/account.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index 0f4e828c4..88fc8387d 100644 --- a/packages/client/src/account.ts +++ b/packages/client/src/account.ts @@ -75,8 +75,7 @@ export async function removeAccount(id: Account['id']) { function fetchAccount(token: string): Promise { return new Promise((done, fail) => { // Fetch user - api('i') - .then(res => res.json()) + api('i', {}, token) .then(res => { if (res.error) { if (res.error.id === 'a8c724b3-6e9c-4b46-b1a8-bc3ed6258370') {