diff --git a/src/main/java/com/genius/gitget/global/security/service/JwtService.java b/src/main/java/com/genius/gitget/global/security/service/JwtService.java index 38144d9a..b8c9315a 100644 --- a/src/main/java/com/genius/gitget/global/security/service/JwtService.java +++ b/src/main/java/com/genius/gitget/global/security/service/JwtService.java @@ -88,7 +88,7 @@ private ResponseCookie setTokenToCookie(String tokenPrefix, String token, long m .maxAge(maxAgeSeconds) .httpOnly(true) .sameSite("None") -// .secure(true) + .secure(true) .build(); } @@ -108,7 +108,6 @@ public boolean validateRefreshToken(String token, String identifier) { public String resolveTokenFromCookie(HttpServletRequest request, JwtRule tokenPrefix) { Cookie[] cookies = request.getCookies(); if (cookies == null) { - //TODO: 현재 여기에서 걸림 쿠키가 없다고 뜸 throw new BusinessException(JWT_TOKEN_NOT_FOUND); } return jwtUtil.resolveTokenFromCookie(cookies, tokenPrefix);