Yana94Ko / cuokkaMap

B-side 303TEN프로젝트 "커카맵"
1 stars 2 forks source link

[BE, KAKAOLOGIN] 필요없는 정보는 아예 서버에서 받아오지 않도록 #26

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/Yana94Ko/cuokkaMap/blob/280a1a84248e0e63dc8d170cee3cde17972f965b/src/main/java/com/bside/cuokkamap/service/KakaoAPI.java#L88


            con.setRequestMethod(method);
            con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
            con.setRequestProperty("Authorization", "Bearer " + accessToken);
            // TODO(BE, KAKAOLOGIN) : 필요없는 정보는 아예 서버에서 받아오지 않도록

            StringBuffer response = getResponse(con);
            JSONObject userJson = new JSONObject(response.toString());

            // ㄱㅗ통....

            userInfo.put("login_id", userJson.get("id").toString());
            userInfo.put("email",((JSONObject) userJson.get("kakao_account")).getString("email"));

        } catch (Exception e) {
            e.printStackTrace();
github-actions[bot] commented 1 year ago

Closed in cc664791ebc03bdb242b30537aff851e1b318a91