Skip to content

Commit

Permalink
[FIX] Reissue API 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tidavid1 committed Mar 20, 2024
1 parent bc2d626 commit 1b63c8c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
import io.oeid.mogakgo.domain.auth.presentation.dto.res.AuthTokenApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.lang.NonNull;
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.RequestParam;
Expand All @@ -24,7 +25,7 @@ public class AuthController implements AuthSwagger {
@PostMapping("/reissue")
public ResponseEntity<AuthTokenApiResponse> reissue(
@RequestHeader(AUTHORIZATION) String accessToken,
@CookieValue(value = "refreshToken") String refreshToken) {
@RequestBody @NonNull String refreshToken) {
var accessTokenDto = authService.reissue(accessToken, refreshToken);
return ResponseEntity.ok(
AuthTokenApiResponse.of(accessTokenDto.getAccessToken(), null, null));
Expand Down

0 comments on commit 1b63c8c

Please sign in to comment.