We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075ebb1 commit 11a475bCopy full SHA for 11a475b
1 file changed
src/apollo.client.ts
@@ -29,10 +29,16 @@ export const createApolloClient = (httpUrl: string) => {
29
},
30
};
31
});
32
+ var accessToken = localStorage.getItem(ACCESS_TOKEN_KEY);
33
34
const wsLink = new GraphQLWsLink(
35
createClient({
36
url: wsUrl,
37
+ connectionParams: accessToken
38
+ ? {
39
+ authToken: accessToken,
40
+ }
41
+ : {},
42
})
43
);
44
0 commit comments