Skip to content

Commit 5edc382

Browse files
committed
fix: reset auth headers if no token
1 parent a54c0c3 commit 5edc382

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/data/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const getMedusaHeaders = (tags: string[] = []) => {
4444

4545
if (token) {
4646
headers.authorization = `Bearer ${token}`
47+
} else {
48+
headers.authorization = ""
4749
}
4850

4951
return headers

0 commit comments

Comments
 (0)