From 89a2de038cb950b8f856d67280f4c75eaeaf4e00 Mon Sep 17 00:00:00 2001 From: hysong4u Date: Wed, 10 Jan 2024 23:21:46 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20=ED=86=A0=ED=81=B0=20=EB=A7=8C?= =?UTF-8?q?=EB=A3=8C=20=EC=8B=9C=EA=B0=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/sweet/domain/member/service/OAuthService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sopt/sweet/domain/member/service/OAuthService.java b/src/main/java/org/sopt/sweet/domain/member/service/OAuthService.java index 47d9412..27f3a46 100644 --- a/src/main/java/org/sopt/sweet/domain/member/service/OAuthService.java +++ b/src/main/java/org/sopt/sweet/domain/member/service/OAuthService.java @@ -134,7 +134,7 @@ public MemberTokenResponseDto saveToken(Long memberId) { refreshToken = storedRefreshToken; } else { refreshToken = issueNewRefreshToken(memberId); - redisTemplate.opsForValue().set(redisKey, refreshToken, 1, TimeUnit.HOURS); + redisTemplate.opsForValue().set(redisKey, refreshToken, 7, TimeUnit.DAYS); } System.out.println("카카오 로그인 성공 memberId: " + memberId + " accessToken :" + accessToken + " refreshToken: " + refreshToken);