Skip to content

Commit

Permalink
Merge pull request #159 from KW-MUJI/develop
Browse files Browse the repository at this point in the history
fix:회원가입 오류
  • Loading branch information
goodsmell authored Dec 2, 2024
2 parents cc6a2c7 + 03fdd7f commit 453aec7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/api/authApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ export const sendAuthRequest = async (email, flag) => {
flag: flag,
};

const response = await apiClient.post(`/auth/mailSend`, requestBody);

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");
}

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

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

0 comments on commit 453aec7

Please sign in to comment.