From 98d15b1fd9e649bb3dfb21e2dcaea589e1409b1f Mon Sep 17 00:00:00 2001 From: kimyechan Date: Thu, 23 May 2024 14:31:59 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20=ED=86=A0=ED=81=B0=20=EC=9C=A0?= =?UTF-8?q?=ED=9A=A8=EA=B8=B0=EA=B0=84=20=EC=9B=90=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=EB=B3=B5=EA=B7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/web/baebaeBE/domain/login/service/LoginService.java | 4 ++-- .../web/baebaeBE/domain/login/service/ManageTokenService.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/LoginService.java b/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/LoginService.java index c4ac259e..05f9805b 100644 --- a/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/LoginService.java +++ b/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/LoginService.java @@ -27,8 +27,8 @@ public class LoginService { private final Oauth2Service oauth2Service; private final JwtTokenProvider jwtTokenProvider; private final S3ImageStorageService s3ImageStorageService; - public static final Duration REFRESH_TOKEN_DURATION = Duration.ofMinutes(2); // 리프레시 토큰 유효기간. - public static final Duration ACCESS_TOKEN_DURATION = Duration.ofMinutes(1); // 액세스 토큰 유효기간. + public static final Duration REFRESH_TOKEN_DURATION = Duration.ofDays(14); // 리프레시 토큰 유효기간. + public static final Duration ACCESS_TOKEN_DURATION = Duration.ofHours(1); // 액세스 토큰 유효기간. /** diff --git a/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/ManageTokenService.java b/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/ManageTokenService.java index 19b4db85..7a66a6ea 100644 --- a/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/ManageTokenService.java +++ b/baebae-BE/src/main/java/com/web/baebaeBE/domain/login/service/ManageTokenService.java @@ -19,8 +19,8 @@ public class ManageTokenService { private final MemberRepository memberRepository; private final JwtTokenProvider jwtTokenProvider; - public static final Duration REFRESH_TOKEN_DURATION = Duration.ofMinutes(2); // 리프레시 토큰 유효기간. - public static final Duration ACCESS_TOKEN_DURATION = Duration.ofMinutes(1); // 액세스 토큰 유효기간. + public static final Duration REFRESH_TOKEN_DURATION = Duration.ofDays(14); // 리프레시 토큰 유효기간. + public static final Duration ACCESS_TOKEN_DURATION = Duration.ofHours(1); // 액세스 토큰 유효기간. /**