문의 시, 사용하시는 개발환경과 디벨로퍼스 앱ID를 알려주세요.
앱 ID:747129
개발환경: nextjs의 next-auth
기존에 로그인 페이지에서 next-auth의 signIn(“kakao”)를 사용하고 있습니다. 그러면 […next-auth]페이지에서
KakaoProvider({
clientId: process.env.KAKAO_CLIENT_ID as string,
clientSecret: process.env.KAKAO_CLIENT_SECRET as string,
profile: (profile) => {
return {
id: profile.id.toString(),
uid: profile.id.toString(),
name: profile.properties.nickname,
role: “newUser”,
profileImage: profile.properties.thumbnail_image || profile.properties.profile_image,
isActive: false,
email: profile.id.toString(),
};
},
}),
이런식으로 받아오고 있어요.
하지만 이렇게 하니까 '카카오 간편 로그인’이 되지 않습니다.
그렇다고 로그인 페이지에서 window.kakao.authorize()를 통해 로그인 하면,
signIn을 통하지 않기 때문에…
기존의 next-auth의 session이나 token 정보가 전달이 안되는 거 같습니다.