Skip to content

Commit

Permalink
refactoring: Remove Security Requirement from methods getNewAcessToke…
Browse files Browse the repository at this point in the history
…n and getNewRefreshToken
  • Loading branch information
arturhasparian committed Jan 15, 2024
1 parent e6303e8 commit 44ac90d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public ResponseEntity<?> registerUser(@RequestBody SignupRequest signUpRequest)
}),
@ApiResponse(responseCode = "401", description = "Unauthorized")
})
@SecurityRequirement(name = "Bearer Authentication")
public ResponseEntity<?> getNewAccessToken(@RequestBody JwtResponse response) throws AuthException {
final JwtResponse token = authService.getJwtAccessToken(response.getJwtRefreshToken());
return ResponseUtil.ok("Access Token", token);
Expand All @@ -101,7 +100,6 @@ public ResponseEntity<?> getNewAccessToken(@RequestBody JwtResponse response) th
}),
@ApiResponse(responseCode = "401", description = "Unauthorized")
})
@SecurityRequirement(name = "Bearer Authentication")
public ResponseEntity<?> getNewRefreshToken(@RequestBody JwtResponse response) throws AuthException {
final JwtResponse token = authService.getJwtRefreshToken(response.getJwtRefreshToken());
return ResponseUtil.create("Refresh token", HttpStatus.OK, token);
Expand Down

0 comments on commit 44ac90d

Please sign in to comment.