Skip to content

Commit

Permalink
refactor : JwtAuthenticationFilter에 토큰 parse ById 적용 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-ho committed Mar 11, 2024
1 parent 548e2a1 commit 05e79f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ private boolean isTokenNullOrInvalidate(String token) {
}

private void setAuthentication(String jwtToken) {
String univId = tokenService.getUnivId(jwtToken);
Member member = memberRepository.findByUnivId(univId)
Long id = tokenService.getId(jwtToken);
Member member = memberRepository.findById(id)
.orElseThrow(() -> MemberNotFoundException.EXCEPTION);

PrincipalDetails principalDetails = new PrincipalDetails(member);
Expand Down

0 comments on commit 05e79f0

Please sign in to comment.