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; }