diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsx index 325ad9c3595..396985d4ce4 100644 --- a/ui/litellm-dashboard/src/components/navbar.tsx +++ b/ui/litellm-dashboard/src/components/navbar.tsx @@ -8,6 +8,7 @@ import { UserOutlined, LogoutOutlined } from '@ant-design/icons'; +import { clearTokenCookies } from "@/utils/cookieUtils"; interface NavbarProps { userID: string | null; userRole: string | null; @@ -27,7 +28,7 @@ const Navbar: React.FC = ({ let logoutUrl = proxySettings?.PROXY_LOGOUT_URL || ""; const handleLogout = () => { - document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; + clearTokenCookies(); window.location.href = logoutUrl; };