From 1a9b6473e2e150efa6708c583e8ea351f653117f Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 29 Apr 2021 19:09:11 +0100 Subject: [PATCH] Update apollo config --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) 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(