private Member getAuthenticatedMember() {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
String username = authentication.getName();
return memberRepository.findByUsernameAndDeletedAtIsNull(username)
.orElseThrow(() -> new CustomException(MemberErrorCode.MEMBER_NOT_FOUND));
}
@GetMapping
public ResponseEntity getMemberInfo(@AuthenticationPrincipal CustomPrincipal principal) {
return ResponseEntity.ok(memberService.getMemberInfo(principal.getId()));
}