Skip to content

Commit

Permalink
fix: update logic to add Auth header on req
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Jun 30, 2023
1 parent c554a30 commit f8346e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/httpService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ axios.interceptors.request.use(
const authToken = storage.authToken.get();

if (authToken) {
config.headers = { Authorization: `Bearer ${authToken}` };
config.headers.Authorization = `Bearer ${authToken}`;
}

return Promise.resolve(config);
Expand Down

0 comments on commit f8346e9

Please sign in to comment.