From f0db47a3846ac157fe8ef1d2a3c271e0db3a0022 Mon Sep 17 00:00:00 2001 From: KimSehoon Date: Sun, 17 Mar 2024 22:55:40 +0900 Subject: [PATCH] =?UTF-8?q?#29=20refactor:=20getKakaoToken=EC=97=90=20?= =?UTF-8?q?=ED=9A=8C=EC=9B=90=20=EA=B0=80=EC=9E=85=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pnuunivmiryangcampus/controller/LoginController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/pnuunivmiryangcampus/controller/LoginController.java b/src/main/java/com/example/pnuunivmiryangcampus/controller/LoginController.java index 4e48f0f..4387d38 100644 --- a/src/main/java/com/example/pnuunivmiryangcampus/controller/LoginController.java +++ b/src/main/java/com/example/pnuunivmiryangcampus/controller/LoginController.java @@ -25,6 +25,10 @@ public String kakaoLogin() { @GetMapping("/kakao/callback") public ResponseEntity getKakaoToken(@RequestParam String code) { - return ResponseEntity.ok(loginService.getKakaoToken(code)); + + KakaoTokenDto kakaoTokenDto = loginService.getKakaoToken(code); + loginService.isUserRegistered(kakaoTokenDto); + + return ResponseEntity.ok(kakaoTokenDto); } }