Fixed subscriptions authorization
This commit is contained in:
parent
8713aa7fd3
commit
ec57392424
1 changed files with 4 additions and 3 deletions
|
|
@ -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}`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue