[chore] Token 관련 로직을 Auth 폴더로 분리#82
Conversation
|
Warning Rate limit exceeded@KiSeungMin has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 11 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (9)
Walkthrough인증 관련 엔드포인트(로그인, 토큰 재발급, 로그아웃, 카카오 로그인)가 기존 Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AuthController
participant AuthService
participant KakaoLoginService
participant SecurityContext
Client->>AuthController: POST /api/v1/auth/login/basic (이메일/비밀번호)
AuthController->>AuthService: login(req)
AuthService-->>AuthController: TokenResponseDto
AuthController-->>Client: CommonResponse<TokenResponseDto>
Client->>AuthController: POST /api/v1/auth/login/kakao (카카오 토큰)
AuthController->>KakaoLoginService: kakaoLogin(request)
KakaoLoginService-->>AuthController: KakaoLoginResponseDto
AuthController-->>Client: CommonResponse<KakaoLoginResponseDto>
Client->>AuthController: POST /api/v1/auth/reissue (refreshToken)
AuthController->>AuthService: reissue(refreshToken)
AuthService-->>AuthController: TokenResponseDto
AuthController-->>Client: CommonResponse<TokenResponseDto>
Client->>AuthController: POST /api/v1/auth/logout (Authorization 헤더)
AuthController->>SecurityContext: 사용자 ID 추출
AuthController->>AuthService: logout(userId)
AuthService-->>AuthController: 성공 메시지
AuthController-->>Client: CommonResponse<String>
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✔️ 연관 이슈
📝 작업 내용
스크린샷 (선택)
Summary by CodeRabbit
신규 기능
버그 수정
기타