We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64f183 commit ee59014Copy full SHA for ee59014
graphql-client/src/index.js
@@ -72,8 +72,8 @@ export function createApolloClient ({
72
}
73
74
// HTTP Auth header injection
75
- authLink = setContext((_, { headers }) => {
76
- const authorization = getAuth(tokenName)
+ authLink = setContext(async (_, { headers }) => {
+ const authorization = await getAuth(tokenName)
77
const authorizationHeader = authorization ? { authorization } : {}
78
return {
79
headers: {
0 commit comments