안녕하세요
카카오 로그인을 REST API 로 구축하였습니다.
아래와 같이 Authorize 호출 후 리턴받은 code 로 token을 리턴받고 있습니다.
문제는 token API 호출시 마다 access_token 이 갱신 됩니다.
문의 드립니다.
== Authorize 호출 소스 ==
string clientId = “53dd00e9174b6e4d3f890838cc3f6869”;
string redirectURI = “https://www-test.dreamtheatre.co.kr:447/Member/Login/KakaoLoginProc”;
string apiURL = “https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=”+ clientId + “&redirect_uri=”+ redirectURI;
== token 호출 소스 ==
string accessTokenApiURL = “https://kauth.kakao.com/oauth/token”;
String sData = String.Format(“grant_type=authorization_code&client_id=53dd00e9174b6e4d3f890838cc3f6869&redirect_uri=https://www-test.dreamtheatre.co.kr:447/Member/Login/KakaoLoginProc&code={0}”, code);