Update apollo config

This commit is contained in:
Hazem Krimi
2021-04-29 19:09:11 +01:00
parent 644d9dbf32
commit 1a9b6473e2
+3
View File
@@ -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(