diff --git a/src/main/java/com/example/moyeothon/Controller/UserController.java b/src/main/java/com/example/moyeothon/Controller/UserController.java index 835dc14..eba2cd4 100644 --- a/src/main/java/com/example/moyeothon/Controller/UserController.java +++ b/src/main/java/com/example/moyeothon/Controller/UserController.java @@ -63,7 +63,7 @@ public ResponseEntity updateNickname(@PathVariable String uid, @Request // 카카오 로그인 성공 시 호출되는 엔드포인트 (GET) @Operation(summary = "카카오 로그인 성공 시 호출되는 엔드포인트 (GET)") @GetMapping("/oauth2/code/kakao") - public ResponseEntity kakaoCallback(@RequestParam String code) { + public ResponseEntity kakaoCallback(@RequestParam(name = "code") String code) { return ResponseEntity.ok(userService.loginWithOAuth2(code)); }