Fix including credentials in gql client

Caused the basic auth popup to constantly open again

Regression 4aad410957
This commit is contained in:
schroda
2025-08-27 01:09:32 +02:00
parent 0bd3370d89
commit 33fb30a399

View File

@@ -232,8 +232,8 @@ export class GraphQLClient extends BaseClient<
const accessToken = AuthManager.getAccessToken();
return {
credentials: 'include',
headers: {
credentials: 'include',
...headers,
...(isAuthRequired && accessToken ? { Authorization: `Bearer ${accessToken}` } : {}),
},
@@ -242,9 +242,7 @@ export class GraphQLClient extends BaseClient<
}
private createUploadLink() {
return createUploadLink({
uri: () => this.getBaseUrl(),
});
return createUploadLink({ uri: () => this.getBaseUrl() });
}
private createWSLink() {