Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be/#284 토큰 재발급 API 리팩토링 #285

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Be/#284 토큰 재발급 API 리팩토링 #285

merged 4 commits into from
Nov 7, 2023

Conversation

youKeon
Copy link
Collaborator

@youKeon youKeon commented Nov 7, 2023

🛠️ 변경사항



☝️ 유의사항



👀 참고자료



❗체크리스트

  • 하나의 메소드는 최소의 기능만 하도록 설정했나요?
  • 수정 가능하도록 유연하게 작성했나요?
  • 필요 없는 import문이나 setter 등을 삭제했나요?
  • 기존의 코드에 영향이 없는 것을 확인하였나요?

Copy link

github-actions bot commented Nov 7, 2023

Unit Test Results

85 tests  ±0   85 ✔️ ±0   4s ⏱️ -1s
17 suites ±0     0 💤 ±0 
17 files   ±0     0 ±0 

Results for commit 414263e. ± Comparison against base commit 9717ef5.

♻️ This comment has been updated with latest results.

String requestToken = filter.resolveToken(request);
tokenProvider.validateToken(requestToken);

RefreshToken savedRefreshToken = refreshTokenRepository.findByEmail(member.getEmail());
String email = tokenProvider.getEmailInAuthentication(requestToken);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 71에 보면 String email = tokenProvider.getAuthentication(request.getAccessToken()).getName(); 처럼 토큰에서 email을 가져오는 코드가 있는데 여기도 함수로 바꿔주면 좋을 것 같아요!

Copy link
Contributor

@kimhalin kimhalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@youKeon youKeon merged commit ba0a6b8 into feature Nov 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants