Update apollo config

This commit is contained in:
Hazem Krimi
2021-05-01 17:52:48 +01:00
parent 50eac01666
commit 2a9a48974d
+1 -1
View File
@@ -12,7 +12,7 @@ const client = new ApolloClient({
uri: process.env.REACT_APP_GRAPHQL_API, uri: process.env.REACT_APP_GRAPHQL_API,
cache: new InMemoryCache(), cache: new InMemoryCache(),
headers: { headers: {
authorization: localStorage.getItem('token') || '', authorization: localStorage.getItem('token')!,
}, },
}); });