Closed q3e closed 6 years ago
this error handling didnt get rid of the error
const httpLink = createHttpLink({ uri: '/graphql' });
const errorLink = onError(({ networkError }) => {
if (networkError.statusCode === 401) {
logout();
}
})
[edit] Solved on SO. see the above link
just change
authorization: 'GITHUB_ACCESS_TOKEN'
to authorization : `Bearer ${GITHUB_ACCESS_TOKEN}
helped me get rid of the error.
ofcourse that variable refering to the token I generated.
Plus I missed the 'Bearer' keyword.
Error results from
related to permisions related issue