Skip to content

Commit

Permalink
refactor: 이메일 정보 가져오는 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youKeon committed Nov 7, 2023
1 parent c2b9b67 commit 0f6a566
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void logout(LogoutRequest request){
throw new InvalidTokenException(ErrorCode.INPUT_INVALID_TOKEN);

// Access Token에서 User email을 가져온다
String email = tokenProvider.getAuthentication(request.getAccessToken()).getName();
String email = tokenProvider.getEmailInAuthentication(request.getAccessToken());

// Redis에서 해당 User email로 저장된 Refresh Token 조회
RefreshToken refreshToken = refreshTokenRepository.findByEmail(email);
Expand Down

0 comments on commit 0f6a566

Please sign in to comment.