Skip to content

Commit

Permalink
fix: reset auth headers if no token
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableVic committed Mar 26, 2024
1 parent a54c0c3 commit 5edc382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const getMedusaHeaders = (tags: string[] = []) => {

if (token) {
headers.authorization = `Bearer ${token}`
} else {
headers.authorization = ""
}

return headers
Expand Down

0 comments on commit 5edc382

Please sign in to comment.