From e7b240a4937c68e9af31bc76ef1a03e5616eaa6b Mon Sep 17 00:00:00 2001 From: Dawid Sowa Date: Wed, 16 Oct 2024 10:48:18 +0200 Subject: [PATCH] fix: skip auth token renew this doesn't work for initial login because `renew` is fired before `login` finishes --- apps/dashboard/src/routes/+layout.svelte | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 568a47a4e..4f3893fb2 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -113,11 +113,6 @@ rdt.walletApi.walletData$.subscribe(({ accounts }) => { updateAccounts(accounts) - if (accounts.length > 0) { - authApi.renewAuthToken().mapErr((err) => { - rdt.disconnect() - }) - } }) resolveRDT(rdt)