From 33fb30a399ea3b5e459c0ff81255b5836eecb390 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 27 Aug 2025 01:09:32 +0200 Subject: [PATCH] Fix including credentials in gql client Caused the basic auth popup to constantly open again Regression 4aad410957c9e89fb389836d47d6e437b2a25c14 --- src/lib/requests/client/GraphQLClient.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/requests/client/GraphQLClient.ts b/src/lib/requests/client/GraphQLClient.ts index 54ae5ac6..d496cb30 100644 --- a/src/lib/requests/client/GraphQLClient.ts +++ b/src/lib/requests/client/GraphQLClient.ts @@ -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() {