From 80e9de991b5c5ef1f9d5c8f0a3204ca6a342c524 Mon Sep 17 00:00:00 2001 From: zeppi <jessopb@gmail.com> Date: Thu, 16 Sep 2021 14:33:52 -0400 Subject: [PATCH] bugfix --- ui/index.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/index.jsx b/ui/index.jsx index ece6e260a..a98a93e8a 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -108,7 +108,11 @@ if (process.env.SEARCH_API_URL) { } // TODO KEYCLOAK -doAuthTokenRefresh(); +getTokens.then(tokens => { + if (tokens.auth_token) { + doAuthTokenRefresh(); + } +}); // We need to override Lbryio for getting/setting the authToken // We interact with ipcRenderer to get the auth key from a users keyring