Comment about SSEClientTransport auth API

This commit is contained in:
Justin Spahr-Summers 2025-02-11 20:43:01 +00:00
commit ba99638f48
No known key found for this signature in database

View file

@ -161,6 +161,8 @@ export function useConnection({
backendUrl.searchParams.append("url", sseUrl);
}
// Inject auth manually instead of using SSEClientTransport, because we're
// proxying through the inspector server first.
const headers: HeadersInit = {};
const tokens = await authProvider.tokens();
if (tokens) {