Set header correctly and use current url as returnUrl when checking session
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user