Comment about SSEClientTransport auth API
This commit is contained in:
parent
f4aefa2706
commit
ba99638f48
1 changed files with 2 additions and 0 deletions
|
|
@ -161,6 +161,8 @@ export function useConnection({
|
||||||
backendUrl.searchParams.append("url", sseUrl);
|
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 headers: HeadersInit = {};
|
||||||
const tokens = await authProvider.tokens();
|
const tokens = await authProvider.tokens();
|
||||||
if (tokens) {
|
if (tokens) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue