diff --git a/packages/hoppscotch-app/components/collections/graphql/Request.vue b/packages/hoppscotch-app/components/collections/graphql/Request.vue
index bb585d26d..95f3387fe 100644
--- a/packages/hoppscotch-app/components/collections/graphql/Request.vue
+++ b/packages/hoppscotch-app/components/collections/graphql/Request.vue
@@ -123,6 +123,7 @@
diff --git a/packages/hoppscotch-app/components/graphql/RequestOptions.vue b/packages/hoppscotch-app/components/graphql/RequestOptions.vue
index 4e049a845..72cac7b44 100644
--- a/packages/hoppscotch-app/components/graphql/RequestOptions.vue
+++ b/packages/hoppscotch-app/components/graphql/RequestOptions.vue
@@ -260,6 +260,9 @@
+
+
+
+const auth = useStream(
+ gqlAuth$,
+ { authType: "none", authActive: true },
+ setGQLAuth
+)
+
// The UI representation of the headers list (has the empty end header)
const workingHeaders = ref>([
{
@@ -602,12 +613,14 @@ const runQuery = async () => {
const runHeaders = clone(headers.value)
const runQuery = clone(gqlQueryString.value)
const runVariables = clone(variableString.value)
+ const runAuth = clone(auth.value)
const responseText = await props.conn.runQuery(
runURL,
runHeaders,
runQuery,
- runVariables
+ runVariables,
+ runAuth
)
const duration = Date.now() - startTime
@@ -623,6 +636,7 @@ const runQuery = async () => {
query: runQuery,
headers: runHeaders,
variables: runVariables,
+ auth: runAuth,
}),
response: response.value,
star: false,
diff --git a/packages/hoppscotch-app/components/graphql/Sidebar.vue b/packages/hoppscotch-app/components/graphql/Sidebar.vue
index 029129e74..31acce919 100644
--- a/packages/hoppscotch-app/components/graphql/Sidebar.vue
+++ b/packages/hoppscotch-app/components/graphql/Sidebar.vue
@@ -210,6 +210,7 @@ import {
useToast,
} from "~/helpers/utils/composables"
import {
+ setGQLAuth,
setGQLHeaders,
setGQLQuery,
setGQLResponse,
@@ -451,6 +452,10 @@ const handleUseHistory = (entry: GQLHistoryEntry) => {
setGQLQuery(gqlQueryString)
setGQLVariables(variableString)
setGQLResponse(responseText)
+ setGQLAuth({
+ authType: "none",
+ authActive: true,
+ })
props.conn.reset()
}
diff --git a/packages/hoppscotch-app/components/history/graphql/Card.vue b/packages/hoppscotch-app/components/history/graphql/Card.vue
index 8cffa9136..3a86df73c 100644
--- a/packages/hoppscotch-app/components/history/graphql/Card.vue
+++ b/packages/hoppscotch-app/components/history/graphql/Card.vue
@@ -58,6 +58,7 @@