Skip to content

Commit

Permalink
chore: jwt 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SSung023 committed Apr 10, 2024
1 parent 624146a commit 026e754
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private ResponseCookie setTokenToCookie(String tokenPrefix, String token, long m
.maxAge(maxAgeSeconds)
.httpOnly(true)
.sameSite("None")
// .secure(true)
.secure(true)
.build();
}

Expand All @@ -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);
Expand Down

0 comments on commit 026e754

Please sign in to comment.