Fixed subscriptions authorization

This commit is contained in:
Andrew Bastin
2021-05-03 09:57:58 -04:00
parent 8713aa7fd3
commit ec57392424

View File

@@ -50,11 +50,12 @@ const wsLink = new WebSocketLink({
? "wss://api.hoppscotch.io/graphql"
: "wss://api.hoppscotch.io/graphql",
options: {
lazy: true,
reconnect: true,
timeout: 300,
connectionParams: () => {
return {
headers: {
authorization: `Bearer ${authToken}`
}
authorization: `Bearer ${authToken}`
}
}
}