Skip to content

Commit ed55bd3

Browse files
authored
Merge pull request #136 from part3-4team-Taskify/feature/Gnb
[Test] 배포 환경에서 로그인 실패 에러 발생, 테스트용 코드 추가
2 parents 47eb285 + fc34308 commit ed55bd3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/api/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export const postAuthData = async ({
1717
email,
1818
password,
1919
});
20+
2021
return response.data;
2122
};

src/pages/login.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getUserInfo } from "@/api/users";
55
import { postAuthData } from "@/api/auth";
66
import Link from "next/link";
77
import Input from "@/components/input/Input";
8+
import { apiRoutes } from "@/api/apiRoutes";
89

910
export default function LoginPage() {
1011
const router = useRouter();
@@ -26,6 +27,8 @@ export default function LoginPage() {
2627
const { email, password } = values;
2728

2829
try {
30+
// 배포 테스트
31+
console.log("로그인 요청 URL:", apiRoutes.login());
2932
const response = await postAuthData({ email, password });
3033
const token = response.accessToken;
3134
localStorage.setItem("accessToken", token);

0 commit comments

Comments
 (0)