Skip to content

Commit 31f55f9

Browse files
committed
Verify headers
1 parent 6f7a949 commit 31f55f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

site/src/api/api.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export const logout = async (): Promise<void> => {
138138
};
139139

140140
export const getAuthenticatedUser = async () => {
141-
console.log("AXIOS DEFAULTS:", axios.defaults.baseURL);
141+
console.log(
142+
"AXIOS DEFAULTS:",
143+
axios.defaults.baseURL,
144+
axios.defaults.headers.common,
145+
);
142146
const response = await axios.get<TypesGen.User>("/api/v2/users/me");
143147
return response.data;
144148
};

0 commit comments

Comments
 (0)