diff --git a/backend/src/main/java/codezap/auth/controller/AuthController.java b/backend/src/main/java/codezap/auth/controller/AuthController.java index c6a3049c7..ff235bff7 100644 --- a/backend/src/main/java/codezap/auth/controller/AuthController.java +++ b/backend/src/main/java/codezap/auth/controller/AuthController.java @@ -40,9 +40,7 @@ public ResponseEntity login( ) { LoginMember loginMember = authService.login(loginRequest); Credential credential = credentialProvider.createCredential(loginMember); - credentialManagers.forEach( - credentialManager -> credentialManager.setCredential(httpServletResponse, credential) - ); + credentialManagers.forEach(cm -> cm.setCredential(httpServletResponse, credential)); return ResponseEntity.ok(LoginResponse.from(loginMember)); } @@ -59,9 +57,7 @@ public ResponseEntity checkLogin( @PostMapping("/logout") public ResponseEntity logout(HttpServletResponse httpServletResponse) { - credentialManagers.forEach( - credentialManager -> credentialManager.removeCredential(httpServletResponse) - ); + credentialManagers.forEach(cm -> cm.removeCredential(httpServletResponse)); return ResponseEntity.noContent().build(); } }