From d85762b32f2bc16d20dd355acc20fecfb967746b Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 13 Aug 2024 17:09:56 -0700 Subject: [PATCH] ui - handle session expired on ui --- ui/litellm-dashboard/src/components/networking.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsx index d989f6d0f..263616c91 100644 --- a/ui/litellm-dashboard/src/components/networking.tsx +++ b/ui/litellm-dashboard/src/components/networking.tsx @@ -29,6 +29,7 @@ const handleError = async (errorData: string) => { message.info("UI Session Expired. Logging out."); lastErrorTime = currentTime; await sleep(3000); // 5 second sleep + document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; window.location.href = baseUrl; } else { message.error(errorData);