We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d295cd commit b65ba5dCopy full SHA for b65ba5d
client/src/services/api.ts
@@ -65,7 +65,7 @@ api.interceptors.request.use(
65
config.headers?.set?.("Authorization", `Bearer ${token}`);
66
67
// Or fallback for older Axios (still safe)
68
- (config.headers as any)["Authorization"] = `Bearer ${token}`;
+ (config.headers as Record<string, string>)["Authorization"] = `Bearer ${token}`;
69
}
70
return config;
71
},
0 commit comments