Skip to content

Commit

Permalink
[ALL] 하루스터디 V1.2.2 개발, 배포 브랜치 동기화
Browse files Browse the repository at this point in the history
[ALL] 하루스터디 V1.2.2 개발, 배포 브랜치 동기화
  • Loading branch information
MoonJeWoong authored Mar 3, 2024
2 parents fbb0813 + 6f8b533 commit 6630f1b
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import jakarta.servlet.http.HttpServletResponse;
import java.util.Arrays;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down Expand Up @@ -58,13 +57,6 @@ public ResponseEntity<TokenResponse> refresh(
return ResponseEntity.ok(tokenResponse);
}

private Cookie setUpRefreshTokenCookie(TokenResponse tokenResponse) {
Cookie cookie = new Cookie("refreshToken", tokenResponse.refreshToken().toString());
cookie.setMaxAge(refreshTokenExpireLength.intValue() / 1000);
cookie.setPath("/");
return cookie;
}

private String extractRefreshTokenFromCookie(HttpServletRequest request) {
return Arrays.stream(request.getCookies())
.filter(cookie -> cookie.getName().equals("refreshToken"))
Expand Down

0 comments on commit 6630f1b

Please sign in to comment.