diff --git a/src/index.tsx b/src/index.tsx index 6fdc4d3..a465a02 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,6 +11,9 @@ import reportWebVitals from './reportWebVitals'; const client = new ApolloClient({ uri: process.env.REACT_APP_GRAPHQL_API, cache: new InMemoryCache(), + headers: { + authorization: localStorage.getItem('token') || '', + }, }); ReactDOM.render(