diff --git a/src/index.tsx b/src/index.tsx index c5502761a0..143ef8c92e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -50,7 +50,7 @@ const authLink = setContext((_, { headers }) => { return { headers: { ...headers, - authorization: 'Bearer ' + localStorage.getItem('token') || '', + authorization: 'Bearer ' + getItem('token') || '', }, }; });