Skip to content

Commit

Permalink
SMA-80: api/v1/auth/me endpoint now returns 401 status code for inval…
Browse files Browse the repository at this point in the history
…id token
  • Loading branch information
ivamach committed Apr 15, 2024
1 parent e4b71a5 commit 5054dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ResponseEntity<?> getUserMainPage() {
try {
return ResponseEntity.ok().body(userService.getMyRank());
} catch (ResponseStatusException e) {
return ResponseEntity.badRequest().body(e.getStatusCode());
return new ResponseEntity<>(e.getMessage(), e.getStatusCode());
}
}
}

0 comments on commit 5054dcb

Please sign in to comment.