Skip to content

Commit

Permalink
Merge pull request #228 from OutDecision/issue/216
Browse files Browse the repository at this point in the history
[BUGFIX]: 동시접속 에러
  • Loading branch information
baeksom authored May 27, 2024
2 parents 7f86f93 + 990fd1b commit 68436be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void addCookie(HttpServletResponse response, String name, String v
}

public static void deleteCookie(HttpServletResponse response, String name) {
System.out.println("CookieUtil.deleteCookie");
System.out.println("쿠키 삭제 메서드");
ResponseCookie cookie = ResponseCookie.from(name, null)
.path("/")
.sameSite("None")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public String generateRefreshToken(String email, String role) {


public String generateAccessToken(String email, String role) {
long tokenPeriod = 1000L * 60L * 30L; // 30분
// long tokenPeriod = 1000L * 10L;
// long tokenPeriod = 1000L * 60L * 30L; // 30분
long tokenPeriod = 1000L * 10L;
Claims claims = Jwts.claims().setSubject(email);
claims.put("role", role);

Expand Down

0 comments on commit 68436be

Please sign in to comment.