Skip to content

Commit

Permalink
chore(admin-ui): Add missing defaults for channel token
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 27, 2023
1 parent 75f6dec commit 54f150f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin-ui/src/lib/core/src/data/data.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function createApollo(
const headers: Record<string, string> = {};
const channelToken = localStorageService.get('activeChannelToken');
if (channelToken) {
headers[channelTokenKey] = channelToken;
headers[channelTokenKey ?? 'vendure-token'] = channelToken;
}
if (tokenMethod === 'bearer') {
const authToken = localStorageService.get('authToken');
Expand Down
1 change: 1 addition & 0 deletions packages/admin-ui/src/lib/static/vendure-ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"adminApiPath": "admin-api",
"tokenMethod": "bearer",
"authTokenHeaderKey": "vendure-auth-token",
"channelTokenKey": "vendure-token",
"defaultLanguage": "en",
"availableLanguages": [
"he",
Expand Down

0 comments on commit 54f150f

Please sign in to comment.