File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ export function createApolloClient ({
76
76
77
77
// HTTP Auth header injection
78
78
authLink = setContext ( async ( _ , { headers } ) => {
79
- const authorization = await getAuth ( tokenName )
80
- const authorizationHeader = authorization ? { authorization } : { }
79
+ const Authorization = await getAuth ( tokenName )
80
+ const authorizationHeader = Authorization ? { Authorization } : { }
81
81
return {
82
82
headers : {
83
83
...headers ,
@@ -122,8 +122,8 @@ export function createApolloClient ({
122
122
wsClient = new SubscriptionClient ( wsEndpoint , {
123
123
reconnect : true ,
124
124
connectionParams : ( ) => {
125
- const authorization = getAuth ( tokenName )
126
- return authorization ? { authorization , headers : { authorization } } : { }
125
+ const Authorization = getAuth ( tokenName )
126
+ return Authorization ? { Authorization , headers : { Authorization } } : { }
127
127
} ,
128
128
} )
129
129
You can’t perform that action at this time.
0 commit comments