안녕하세요. 카카오 입니다.
카카오 로그인은 OAuth 2.0 표준 스펙을 준수하고 있습니다.
따라서 카카오 로그인 요청 시 파라메터 scope을 명시할 경우, 해당 스콥에 대한 개인정보 동의만 받게 됩니다.
세부적으로 파악한 내용입니다.
아래는 사용하고 계신 앱 요청하신 URI 입니다.
https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=xxxxxx&scope=profile&state=Z3JNGXqbBZCtif_8D0hz5hWhuAeftMPNUIeCOW4_Kj4%3D&redirect_uri=https://api.taxmon.co.kr/login/oauth2/code/kakao
위 URI 에서 보시는 것과 같이 scope 파라메터에 profile 을 명사하여 요청하고 있습니다. 그렇기 때문에 이메일을 제외한 카카오 프로필 동의만 진행되고 따라서, 유저정보 조회 시 이메일 정보를 받을 수 없습니다.
디벨로퍼스에 설정한 scope에 대한 모든 항목을 동의받고자 하신다면, 아래와 같이 scope 파라메터를 빼고 요청 하시거나, 디벨로퍼스에 설정한 모든 scope을 명시하셔야 합니다.
<이메일포함 scope 파라메터 명시>
https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=xxxxxx&scope=profile,account_email&state=Z3JNGXqbBZCtif_8D0hz5hWhuAeftMPNUIeCOW4_Kj4%3D&redirect_uri=https://api.taxmon.co.kr/login/oauth2/code/kakao
<scope 파라메터 제외>
https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=xxxxxx&state=Z3JNGXqbBZCtif_8D0hz5hWhuAeftMPNUIeCOW4_Kj4%3D&redirect_uri=https://api.taxmon.co.kr/login/oauth2/code/kakao
감사합니다.