Skip to content

Commit

Permalink
[fix] refreshToken 헤더로 담아서 요청 보내도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
elive7 committed Jun 2, 2024
1 parent 110788f commit 4b2d7f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -19,8 +20,7 @@ public class TokenController {

@PostMapping("/token/refresh")
public ResponseEntity<AccessTokenResponse> refreshAccessToken(
@RequestBody RefreshTokenRequest refreshTokenRequest) {
String refreshToken = refreshTokenRequest.refreshToken();
@RequestHeader String refreshToken) {
return ResponseEntity.ok(tokenService.refreshAccessToken(refreshToken));
}
}

0 comments on commit 4b2d7f4

Please sign in to comment.