fix(ui): widen persistToken return type to satisfy next build type check

This commit is contained in:
ryan-crabbe-berri 2026-07-08 14:34:14 -07:00
parent ae32cc9803
commit 43e37a71e2

View file

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