We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 382f155 + 73f5617 commit cf93dd2Copy full SHA for cf93dd2
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