Skip to content

Commit

Permalink
FIX : 로그아웃 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juwum12 committed May 6, 2024
1 parent 9d754c7 commit 67f5c55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/nawabali/nawabali/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public class UserService {

public void logout(HttpServletRequest request, HttpServletResponse response) {

response.addHeader(JwtUtil.AUTHORIZATION_HEADER, null);
Cookie cookie = new Cookie(JwtUtil.AUTHORIZATION_HEADER, null);
cookie.setMaxAge(0);
cookie.setPath("/");
cookie.setDomain("dongnaebangnae.com");
response.addCookie(cookie);
// response.addHeader(JwtUtil.AUTHORIZATION_HEADER, null);
// Cookie cookie = new Cookie(JwtUtil.AUTHORIZATION_HEADER, null);
// cookie.setMaxAge(0);
// cookie.setPath("/");
// cookie.setDomain("dongnaebangnae.com");
// response.addCookie(cookie);

// String headerAccessToken = jwtUtil.getJwtFromHeader(request);
String accessToken = jwtUtil.getTokenFromCookieAndName(request, JwtUtil.AUTHORIZATION_HEADER);
Expand Down

0 comments on commit 67f5c55

Please sign in to comment.