style: fix code style to pass CI checks
This commit is contained in:
parent
c186f531b8
commit
b51ee625cd
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue