Set header correctly and use current url as returnUrl when checking session

This commit is contained in:
2019-01-22 13:39:51 +01:00
parent 0470844f4a
commit eceb370bfa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ const errorLink = onError(({ graphQLErrors, networkError, operation, forward })
operation.setContext({
headers: {
...oldHeaders,
authorization: webAuth.idToken(),
Authorization: `Bearer ${webAuth.accessToken()}`,
},
});
return forward(operation);