From 059cd5ec2847513627e5dae169cf8218c06b220b Mon Sep 17 00:00:00 2001 From: JungTae Kwon Date: Thu, 10 Oct 2024 17:08:41 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20JWT=20=EB=A7=8C=EB=A3=8C=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EC=97=B0=EC=9E=A5=20(#167)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../soongsil/CoffeeChat/service/CustomOAuth2UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/soongsil/CoffeeChat/service/CustomOAuth2UserService.java b/src/main/java/com/soongsil/CoffeeChat/service/CustomOAuth2UserService.java index 551d3b3..c5d5113 100644 --- a/src/main/java/com/soongsil/CoffeeChat/service/CustomOAuth2UserService.java +++ b/src/main/java/com/soongsil/CoffeeChat/service/CustomOAuth2UserService.java @@ -108,7 +108,7 @@ public String verifyGoogleToken(String accessToken) { log.info("===== Token info received ===== " + tokenInfo); if (tokenInfo != null && tokenInfo.containsKey("sub")) { String googleId = (String) tokenInfo.get("sub"); - return jwtUtil.createJwt("access", googleId, "ROLE_USER", 180000L); + return jwtUtil.createJwt("access", googleId, "ROLE_USER", 1800000000L); } else { log.error("===== Invalid token info ===== " + tokenInfo); throw new CustomException(INVALID_TOKEN.getHttpStatusCode(), INVALID_TOKEN.getErrorMessage());