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 b27ae6d commit 2849138Copy full SHA for 2849138
src/plugin.js
@@ -31,11 +31,13 @@ const browserUri = '<%= options.browserUri %>';
31
32
const createAuthLink = store => setContext((_, { headers }) => {
33
const token = store.getters['auth/token'];
34
+ const context = store.getters['auth/context'];
35
36
return {
37
headers: {
38
...headers,
- authorization: token ? 'Bearer ' + token : '',
39
+ ...(context && { 'X-Authorization-Context': context }),
40
+ Authorization: token ? 'Bearer ' + token : '',
41
},
42
};
43
});
0 commit comments