From 990fd1bdafd5341382fe04a7c05aa15d8f29e199 Mon Sep 17 00:00:00 2001 From: baeksom <97323941+baeksom@users.noreply.github.com> Date: Mon, 27 May 2024 12:34:29 +0900 Subject: [PATCH] =?UTF-8?q?[BUGFIX]:=20=EB=8F=99=EC=8B=9C=EC=A0=91?= =?UTF-8?q?=EC=86=8D=20=EC=97=90=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OutDecision/global/common/util/CookieUtil.java | 2 +- .../KGUcapstone/OutDecision/global/common/util/JwtUtil.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/KGUcapstone/OutDecision/global/common/util/CookieUtil.java b/src/main/java/KGUcapstone/OutDecision/global/common/util/CookieUtil.java index 761ded1..7c0db48 100644 --- a/src/main/java/KGUcapstone/OutDecision/global/common/util/CookieUtil.java +++ b/src/main/java/KGUcapstone/OutDecision/global/common/util/CookieUtil.java @@ -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") diff --git a/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java b/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java index 175a2ae..6476026 100644 --- a/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java +++ b/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java @@ -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);