fixes and refactor
This commit is contained in:
@@ -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}`,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user