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

access token 검증 기능 구현 #68

Merged
merged 5 commits into from
Feb 24, 2024
Merged

Conversation

uijin-j
Copy link
Contributor

@uijin-j uijin-j commented Feb 22, 2024

🎫 관련 이슈

Resolves #63

✅ 구현 내용

  • loginId를 통한 사용자 조회 서비스 코드 작성
  • Access Token 검증 API 엔드포인트 추가
  • Access Token 검증 테스트 코드 작성

@uijin-j uijin-j added this to the 🚀 2차 스프린트 milestone Feb 22, 2024
@uijin-j uijin-j self-assigned this Feb 22, 2024
Copy link

📝 Jacoco Test Coverage

Overall Project 45.56% -0.42%
Files changed 66.67%

File Coverage
AuthService.java 100% 🍏
AuthController.java 0% -50%

Copy link
Member

@Sehee-Lee-01 Sehee-Lee-01 left a comment

Choose a reason for hiding this comment

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

코드가 전반적으로 짧기도 하고 깔끔하게 짜주셔서 피드백 할 것은 없습니당!!
고생하셨어요ㅠㅠㅠ

@PostMapping("/me")
@Operation(summary = "Access Token 검증")
@ApiResponse(responseCode = "200", description = "Access Token 검증 성공")
public ResponseEntity<UserSummary> validateToken(@Login Long loginId) {
Copy link
Member

Choose a reason for hiding this comment

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

오 로그인이 필요한 요청이면 로그인 에너테이션을 이렇게 달면 돠는군요!

@uijin-j uijin-j merged commit 31aa392 into dev Feb 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants