Skip to content

Commit

Permalink
no authorizattion header if no token is present
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Mar 20, 2024
1 parent 59d8a4c commit 7c5f165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presenter/renderer/plugins/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const createAuthLink = (getToken: () => string) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
headers: {
...headers,
authorization: token ? `Bearer ${token}` : '',
...(token && { authorization: `Bearer ${token}` }),
},
}
})
Expand Down

0 comments on commit 7c5f165

Please sign in to comment.