Skip to content

Commit b65ba5d

Browse files
committed
fix: update request interceptor to use Record type for headers
1 parent 0d295cd commit b65ba5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ api.interceptors.request.use(
6565
config.headers?.set?.("Authorization", `Bearer ${token}`);
6666

6767
// Or fallback for older Axios (still safe)
68-
(config.headers as any)["Authorization"] = `Bearer ${token}`;
68+
(config.headers as Record<string, string>)["Authorization"] = `Bearer ${token}`;
6969
}
7070
return config;
7171
},

0 commit comments

Comments
 (0)