mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(ui): widen persistToken return type to satisfy next build type check
This commit is contained in:
parent
ae32cc9803
commit
43e37a71e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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> | void;
|
||||
/** Persist the exchanged token (sessionStorage, backend DB, etc.). Awaited; any resolved value is ignored. */
|
||||
persistToken: (token: McpOAuthTokenResult, flowState: McpOAuthFlowState) => Promise<unknown> | void;
|
||||
/** Invoked after the token is persisted so the caller can refresh UI state. */
|
||||
onSuccess: (accessToken: string) => void;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue