Skip to content

Commit

Permalink
#29 refactor: getKakaoToken에 회원 가입 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ki-met-hoon committed Mar 17, 2024
1 parent 81eb404 commit f0db47a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public String kakaoLogin() {

@GetMapping("/kakao/callback")
public ResponseEntity<KakaoTokenDto> getKakaoToken(@RequestParam String code) {
return ResponseEntity.ok(loginService.getKakaoToken(code));

KakaoTokenDto kakaoTokenDto = loginService.getKakaoToken(code);
loginService.isUserRegistered(kakaoTokenDto);

return ResponseEntity.ok(kakaoTokenDto);
}
}

0 comments on commit f0db47a

Please sign in to comment.