Skip to content

Commit

Permalink
[BE] merge conflict 해결 과정 중 중복 선언된 메서드 제거 #762
Browse files Browse the repository at this point in the history
* refactor: 중복된 메서드 선언 제거

* test: 누락된 contextTest 추가

* test: git 설정 오류로 누락된 contextTest 추가
  • Loading branch information
MoonJeWoong authored Mar 3, 2024
1 parent feb5e52 commit 6f8b533
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 6f8b533

Please sign in to comment.