From 67c6fbdb0b83acfa45141fda9535cdfc8aa39d94 Mon Sep 17 00:00:00 2001 From: sycuuui <102959791+sycuuui@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:56:45 +0900 Subject: [PATCH] fix : delete unlink --- .../global/security/kakao/KakaoClient.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/Journey/Together/global/security/kakao/KakaoClient.java b/src/main/java/Journey/Together/global/security/kakao/KakaoClient.java index f7c7c83..5ce05eb 100644 --- a/src/main/java/Journey/Together/global/security/kakao/KakaoClient.java +++ b/src/main/java/Journey/Together/global/security/kakao/KakaoClient.java @@ -33,9 +33,6 @@ public class KakaoClient { @Value("${spring.security.oauth2.client.provider.kakao.user-info-uri}") private String kakaoUserInfoUri; - @Value("${spring.security.oauth2.kakao.admin-key}") - private String adminKey; - public KakaoProfile getMemberInfo(String accesToken) { // 요청 기본 객체 생성 WebClient webClient = WebClient.create(kakaoUserInfoUri); @@ -59,16 +56,4 @@ public KakaoProfile getMemberInfo(String accesToken) { return kakaoProfile; } - - public void unlink(){ - WebClient webClient = WebClient.create("https://kapi.kakao.com/v1/user/unlink"); - // 요청 보내서 응답 받기 - String response = webClient.post() - .uri("https://kapi.kakao.com/v1/user/unlink") - .header("Content-Type", "application/x-www-form-urlencoded;charset=utf-8") - .header("Authorization", adminKey) - .retrieve() - .bodyToMono(String.class) - .block(); - } }