We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382f155 commit 73f5617Copy full SHA for 73f5617
1 file changed
src/apollo.client.ts
@@ -30,13 +30,12 @@ export const createApolloClient = (httpUrl: string) => {
30
};
31
});
32
33
- //@Samox TODO make sure the WSlink uses the accesstoken right after it is created or refreshed
34
const wsLink = new GraphQLWsLink(
35
createClient({
36
url: wsUrl,
37
- connectionParams: {
+ connectionParams: () => ({
38
authToken: localStorage.getItem(ACCESS_TOKEN_KEY),
39
- },
+ }),
40
})
41
);
42
0 commit comments