Skip to content

Commit

Permalink
Fix: jwt 재발급 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sejoon00 committed Jun 10, 2024
1 parent ebfe9eb commit 649b5bf
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -18,11 +18,12 @@ public class AuthController {

private final JwtTokenService jwtTokenService;

@PostMapping("/token/reissue")
@GetMapping("/token/reissue")
@Operation(summary = "AT RT 재발급")
public ResponseEntity<TokenDto> reIssue(
public ResponseEntity<Void> reIssue(
@RequestBody TokenDto tokenDto
) {
return ResponseEntity.ok(jwtTokenService.recreateTokenDto(tokenDto.refreshToken()));
// return ResponseEntity.ok(jwtTokenService.recreateTokenDto(tokenDto.refreshToken()));
return ResponseEntity.ok().body(null);
}
}

0 comments on commit 649b5bf

Please sign in to comment.