From 2c0f2e8fac0a47074eee13fc5dd095f1bccd4ee9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 3 Mar 2025 17:27:50 -0800 Subject: [PATCH] fixes for get auth token --- ui/litellm-dashboard/src/utils/cookieUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/utils/cookieUtils.ts b/ui/litellm-dashboard/src/utils/cookieUtils.ts index 35dd8d67058..187ad03d97a 100644 --- a/ui/litellm-dashboard/src/utils/cookieUtils.ts +++ b/ui/litellm-dashboard/src/utils/cookieUtils.ts @@ -66,7 +66,7 @@ export function getAuthToken() { } return null; }) - .filter(cookie => cookie !== null); + .filter((cookie): cookie is { name: string; timestamp: number; value: string } => cookie !== null); if (tokenCookies.length > 0) { // Sort by timestamp (newest first)