From cd3f9419e55a7aadcf550827b6cb39ed1cf5f7a2 Mon Sep 17 00:00:00 2001 From: "2jin2.1031" <2jin2.1031@gmail.com> Date: Sun, 12 Jan 2025 09:42:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20access=20token=20=EC=9C=A0?= =?UTF-8?q?=ED=9A=A8=EC=8B=9C=EA=B0=84=20=EC=A6=9D=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/org/example/backend/jwt/LoginFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/example/backend/jwt/LoginFilter.java b/backend/src/main/java/org/example/backend/jwt/LoginFilter.java index 21d79f65..13abc93a 100644 --- a/backend/src/main/java/org/example/backend/jwt/LoginFilter.java +++ b/backend/src/main/java/org/example/backend/jwt/LoginFilter.java @@ -88,7 +88,7 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR String role = auth.getAuthority(); - String token = jwtUtil.createJwt(loginId, role, 60 * 60 * 10L); + String token = jwtUtil.createJwt(loginId, role, 1800 * 100 * 10L); response.addHeader("Authorization", "Bearer " + token); } From 70910c6f9322ffe0c6fe74673522b7de51da3da5 Mon Sep 17 00:00:00 2001 From: "2jin2.1031" <2jin2.1031@gmail.com> Date: Sun, 12 Jan 2025 17:37:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20accessToken=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=20=EC=A6=9D=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/example/backend/jwt/LoginFilter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/org/example/backend/jwt/LoginFilter.java b/backend/src/main/java/org/example/backend/jwt/LoginFilter.java index 13abc93a..ddeadcf8 100644 --- a/backend/src/main/java/org/example/backend/jwt/LoginFilter.java +++ b/backend/src/main/java/org/example/backend/jwt/LoginFilter.java @@ -88,9 +88,10 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR String role = auth.getAuthority(); - String token = jwtUtil.createJwt(loginId, role, 1800 * 100 * 10L); + String accessToken = jwtUtil.createJwt(loginId, role, 100000000 * 1800 * 100 * 10L); + String refreshToken = jwtUtil.createJwt(loginId, role, 60 * 60 * 24 * 30 * 1000L); - response.addHeader("Authorization", "Bearer " + token); + response.addHeader("Authorization", "Bearer " + accessToken); } @Override