Skip to content

Commit

Permalink
FIX : 로그아웃 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juwum12 committed May 7, 2024
1 parent 824e308 commit a477067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
public class UserController {
private final UserService userService;

@PostMapping("/logout")
public void logout(HttpServletRequest request, HttpServletResponse response){
userService.logout(request, response);
}
// @PostMapping("/logout")
// public void logout(HttpServletRequest request, HttpServletResponse response){
// userService.logout(request, response);
// }

@PostMapping("/signup")
@Operation(summary = "회원가입", description = "회원가입에 사용하는 API")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void logout(HttpServletRequest request, HttpServletResponse response, Aut
Cookie cookie = new Cookie(JwtUtil.AUTHORIZATION_HEADER, null);
cookie.setMaxAge(0);
cookie.setPath("/");
response.addHeader(JwtUtil.AUTHORIZATION_HEADER, null);
cookie.setDomain("dongnaebangnae.com");
response.addCookie(cookie);


Expand Down

0 comments on commit a477067

Please sign in to comment.