Skip to content

Commit

Permalink
Merge pull request #60 from Journey-Together/feature/31
Browse files Browse the repository at this point in the history
fix : delete unlink
  • Loading branch information
sycuuui authored Jun 9, 2024
2 parents ecfa4b6 + 67c6fbd commit a282665
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
}

0 comments on commit a282665

Please sign in to comment.