강의

멘토링

커뮤니티

Inflearn Community Q&A

startop10's profile image
startop10

asked

Next + Create a SNS service with React Query

Logging in with next-auth

3장_ next-auth 로그인하기 / 로그인 시 ID,Password 정보 어디에 있나요?

Written on

·

275

0

마지막에 로그인시

저는 http://localhost:3000/api/auth/error

"이 페이지는 존재하지 않습니다. 다른 페이지를 검색해 보세요

검색"

 

위 URL로 리다이렉트 되고 해당 ㅁㅔ시지가 뜹니다.

혹시 어디에 있는 정보로 로그인하는건지 궁금합니다

reactnext.jsreact-querynext-authmsw

Answer 2

0

startop10님의 프로필 이미지
startop10
Questioner

api 폴더 위치가 잘못 되었습니다.

확인 감사합니다

0

zerocho님의 프로필 이미지
zerocho
Instructor

https://github.com/ZeroCho/next-app-router-z/blob/master/ch3-1%2Fsrc%2Fmocks%2Fhandlers.ts

여기서 api/login에서 알아서 유저 정보를 넣습니다. 즉 절대 실패하지 않습니다. api/auth/error가 나오는 것은 지금 auth.ts쪽에서 에러가 발생하는 것 같습니다.

startop10's profile image
startop10

asked

Ask a question