Skip to content

Commit

Permalink
feat: 로그인 요청 시 데이터 형식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghaeun committed Jul 20, 2024
1 parent d499bf1 commit d72a4ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FE/error/src/pages/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ const LoginPage = () => {
setIsLoading(true);
try {
const response = await axios.post("/api/auth/login/slack", {
code: authCode,
authCode,
});

if (response.data.success) {
localStorage.setItem("slackToken", response.data.token);
navigate("/dashboard");
} else {
console.error("Login failed:", response.data.message);
// 여기에 에러 처리 로직 추가 (예: 사용자에게 알림)
Expand Down

0 comments on commit d72a4ea

Please sign in to comment.