Skip to content

Commit

Permalink
feat: JWT 발급 Cookie maxAge 설정 #8
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Jan 24, 2024
1 parent 6968c8d commit 2aa4856
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private void addTokenToCookie(String cookieName, String token, HttpServletRespon
Cookie cookie = new Cookie(cookieName, token);
//cookie.setSecure(true); //TODO: HTTPS 설정 후에 주석 해제
cookie.setHttpOnly(true);
cookie.setMaxAge(1);

response.addCookie(cookie);
}
Expand Down

0 comments on commit 2aa4856

Please sign in to comment.