File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ export const postAuthData = async ({
1717 email,
1818 password,
1919 } ) ;
20+
2021 return response . data ;
2122} ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { getUserInfo } from "@/api/users";
55import { postAuthData } from "@/api/auth" ;
66import Link from "next/link" ;
77import Input from "@/components/input/Input" ;
8+ import { apiRoutes } from "@/api/apiRoutes" ;
89
910export 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 ) ;
You can’t perform that action at this time.
0 commit comments