fixes and refactor

This commit is contained in:
Liyas Thomas
2021-05-14 05:50:17 +00:00
committed by GitHub
parent 2b8cda40a2
commit 8f09c82763
13 changed files with 107 additions and 87 deletions

View File

@@ -50,12 +50,8 @@ const wsLink = new WebSocketLink({
reconnect: true,
lazy: true,
connectionParams: () => {
if (authToken) {
return {}
} else {
return {
authorization: `Bearer ${authToken}`,
}
return {
authorization: `Bearer ${authToken}`,
}
},
},