Skip to content

Commit

Permalink
Merge pull request #161 from KW-MUJI/develop
Browse files Browse the repository at this point in the history
수정
  • Loading branch information
minggong222 authored Dec 2, 2024
2 parents 453aec7 + e5eebac commit a72b092
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/api/authApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ export const sendAuthRequest = async (email, flag) => {
flag: flag,
};

const response = await fetch(`${API_BASE_URL}/auth/mailSend`, {
method: "POST",
body: JSON.stringify(requestBody),
});
if (!response.ok) {
throw new Error("Network response was not ok");
}
const response = await apiClient.post(`/auth/mailSend`, requestBody);

return await response.json();
return response;
};

export const verifyPinRequest = async (email, pin) => {
Expand Down

0 comments on commit a72b092

Please sign in to comment.