Skip to content

Commit 9ac5308

Browse files
committed
prettify
1 parent 1d4a052 commit 9ac5308

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

client/src/index.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ const terminatingLink = split(
3636
);
3737

3838
const authLink = new ApolloLink((operation, forward) => {
39-
operation.setContext(({ headers = {}, localToken = localStorage.getItem('token') }) => {
40-
if (localToken) {
41-
headers['x-token'] = localToken;
42-
}
43-
return {
44-
headers
45-
}
46-
});
39+
operation.setContext(
40+
({
41+
headers = {},
42+
localToken = localStorage.getItem('token'),
43+
}) => {
44+
if (localToken) {
45+
headers['x-token'] = localToken;
46+
}
47+
return {
48+
headers,
49+
};
50+
},
51+
);
4752

4853
return forward(operation);
4954
});

0 commit comments

Comments
 (0)