Skip to content

Commit 7324584

Browse files
authored
fix(dashboard): Respect authTokenHeaderKey config (#3935)
1 parent 3fb2786 commit 7324584

File tree

1 file changed

+1
-1
lines changed
  • packages/dashboard/src/lib/graphql

1 file changed

+1
-1
lines changed

packages/dashboard/src/lib/graphql/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const awesomeClient = new AwesomeGraphQLClient({
6060
credentials: 'include',
6161
mode: 'cors',
6262
}).then(res => {
63-
const authToken = res.headers.get('vendure-auth-token');
63+
const authToken = res.headers.get(uiConfig.api.authTokenHeaderKey);
6464
if (authToken) {
6565
localStorage.setItem(LS_KEY_SESSION_TOKEN, authToken);
6666
}

0 commit comments

Comments
 (0)