From 43e37a71e2328a21cc5bda6a36a578d96e7269f6 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Wed, 8 Jul 2026 14:34:14 -0700 Subject: [PATCH] fix(ui): widen persistToken return type to satisfy next build type check --- ui/litellm-dashboard/src/hooks/useMcpOAuthPkceFlow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/hooks/useMcpOAuthPkceFlow.ts b/ui/litellm-dashboard/src/hooks/useMcpOAuthPkceFlow.ts index fa476ed5e90..41a7aaae881 100644 --- a/ui/litellm-dashboard/src/hooks/useMcpOAuthPkceFlow.ts +++ b/ui/litellm-dashboard/src/hooks/useMcpOAuthPkceFlow.ts @@ -57,8 +57,8 @@ interface UseMcpOAuthPkceFlowConfig { storageKeys: McpOAuthStorageKeys; /** URL to return to after the OAuth redirect completes. */ buildReturnUrl: () => string; - /** Persist the exchanged token (sessionStorage, backend DB, etc.). */ - persistToken: (token: McpOAuthTokenResult, flowState: McpOAuthFlowState) => Promise | void; + /** Persist the exchanged token (sessionStorage, backend DB, etc.). Awaited; any resolved value is ignored. */ + persistToken: (token: McpOAuthTokenResult, flowState: McpOAuthFlowState) => Promise | void; /** Invoked after the token is persisted so the caller can refresh UI state. */ onSuccess: (accessToken: string) => void; }