Skip to content

Commit 0210fb5

Browse files
committed
fix: 사용자 정보 수정 API 보안 위험 수정
1 parent bd1d57b commit 0210fb5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/features/join/api/user.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@ import { axiosClient } from '../../../shared/types/api/http-client';
22
import { UserInfoRequest, UserInfoResponse } from '../model/userInformation';
33

44
export const readUser = async (): Promise<UserInfoResponse> => {
5-
const response = await axiosClient.get<{ result: UserInfoResponse }>('/users', {
6-
headers: { skipAuth: true },
7-
});
5+
const response = await axiosClient.get<{ result: UserInfoResponse }>('/users');
86
return response.data.result;
97
};
108

119
export const updateUser = async (data: UserInfoRequest): Promise<UserInfoResponse> => {
12-
const response = await axiosClient.put<UserInfoResponse>('/users', data, {
13-
headers: { skipAuth: true },
14-
});
10+
const response = await axiosClient.put<UserInfoResponse>('/users', data);
1511
return response.data;
1612
};

0 commit comments

Comments
 (0)