Can I know how to solve the authority issue? This is the codes that i use:
<script type="text/javascript" src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function() {
Kakao.init("964132215abd4dd26f9120cd646f01d2");
Kakao.Auth.createLoginButton({
container : "#kakao-login-btn",success : function(authObj) {
Kakao.API.request({
url : "/v1/user/me",success : function(res) {
document.getElementById("kakaoIdentity").innerHTML = res.id;
document.getElementById("kakaoNickName").innerHTML = res.properties.nickname;
document.getElementById("kakaoProfileImg").src = res.properties.profile_image;
document.getElementById("kakaoThumbnailImg").src = res.properties.thumbnail_image;
},
fail : function(error) {
alert(JSON.stringify(error));
}
});
And I’d like to know if it’s related to the domain that I’m using for the website.
http://localhost:8080
You can refer the following topic for the domain setting.
카카오 로그인 Redirect URI 등록정책 변경이 있어 안내드립니다.
한 서비스 내에서 다수의 로그인 Redirect URI 설정이 가능하도록 변경됩니다.
기존 정책은 한 서비스 내에서 하나의 Redirect Path 설정이 가능했습니다.
서비스 도메인과 로그인 Redirect Path를 조합하여 로그인을 위한 Redirect URI 로 구성하는 정책이었으나,
서비스에서 다수의 Redirect URI를 구성하고자 하는 요구사항이 있었고 이를 지원하도록 개선되었습니다.
변경되는 정책의 세부 내용은 다음과 같습니다.
로그인 Redirect URI 등록
[내 애플리케이션] > [제품설정] > [카카오 로그인]에 들어가시면 Redirect URI의 설정 항목이 있습니다.
최대 10개의 Redirect URI를 등록할 수 있습니다.
만약 서비스에서 10개 이상의 Redirect URI를 등록하고자 하신다면, 데브톡으로 문의 주시기 바랍니다
[5]
기존 로그인 Re…
How if i still failed to login due to authority issue after make changes?
Thank you.
anon56029308:
/v1/user/me"
‘User information Request API v1’ has deprecated since February 10, 2020. we currently provide ‘User information Request API v2’ service with abundant information.
Please change Request URI from ‘/v1/user/me’ to ‘/v2/user/me’.
Thank you.
We are preparing for the English version of the guide. Until then, please refer to this Korean version of the guide with a little assist from Google Translator.