style: fix code style to pass CI checks

This commit is contained in:
xiaoli 2025-05-30 10:14:03 +08:00
commit b51ee625cd

View file

@ -304,8 +304,8 @@ export function useConnection({
bearerToken || (await serverAuthProvider.tokens())?.access_token;
if (token) {
const authHeaderName = headerName || "Authorization";
// Add custom header name as a special request header to let the server know which header to pass through
// Add custom header name as a special request header to let the server know which header to pass through
if (authHeaderName.toLowerCase() !== "authorization") {
headers[authHeaderName] = token;
headers["x-custom-auth-header"] = authHeaderName;