Skip to content

Commit

Permalink
Fix: 유저 ì� 유저 조회�이디 조회로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
1223v committed Nov 16, 2023
1 parent 68305d0 commit 074d284
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@ public UserInfoRes userInfo(@AuthenticationPrincipal CustomUserDetails userDetai
return userServiceImpl.getUserInfoById(userDetails.getId());
}

/**
* 사용자 정보 조회
* CustomUserDetails의 내부 구현체인 UserDetails를 사용하여도 사용자 정보를 조회가능
* 인증체크 후 사용자 정보를 반환
* @param userDetails
* @return
*/
@GetMapping("/user/detail/info")
public UserDetails userDetail(@AuthenticationPrincipal UserDetails userDetails) {
public CustomUserDetails userDetail(@AuthenticationPrincipal CustomUserDetails userDetails) {
return userDetails;
}

Expand Down

0 comments on commit 074d284

Please sign in to comment.