Conversation
브랜치 히스토리 동기화: main -> develop
feat: 소셜 로그인&회원가입 API 구현
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Caution Review failedThe pull request is closed. Walkthrough사용자 가입 흐름을 API 연동으로 전환하고, 닉네임 검증·장르(별칭) 선택·회원가입 완료 페이지 간 상태 전달을 추가했다. OAuth 로그인은 카카오/구글로 리다이렉트하도록 변경했다. 신규 API 클라이언트 모듈(getAlias, postNickname, postSignup)을 추가했고, 가입 입력/오류 스타일을 확장했다. Changes
Sequence Diagram(s)sequenceDiagram
actor U as User
participant L as Login Page
participant B as Browser
participant S as Auth Server
U->>L: Click Kakao/Google
L->>B: window.location.href = {BASE}/oauth2/authorization/{provider}
B->>S: GET /oauth2/authorization/{provider}
S-->>B: Redirect to provider login (standard OAuth flow)
sequenceDiagram
actor U as User
participant N as SignupNickname
participant API as /users/nickname
U->>N: 입력 및 다음 클릭
N->>N: Regex로 클라이언트 검증
N->>API: POST nickname
API-->>N: { data.isVerified }
alt isVerified = true
N->>N: error = null
N->>Router: navigate('/signup/genre', { state: { nickname }})
else isVerified = false
N->>N: error = "이미 사용중인 닉네임이에요."
end
sequenceDiagram
actor U as User
participant G as SignupGenre
participant CK as Cookie
participant C as apiClient
participant API as /users/signup
participant R as Router
U->>G: 별칭(장르) 선택 후 다음 클릭
G->>G: nickname & selectedAlias 존재 확인
G->>CK: getAuthTokenFromCookie()
CK-->>G: token
G->>C: setAuthTokenToHeader(token)
G->>API: POST { aliasName, nickName }
API-->>G: { data.userId }
G->>R: navigate('/signupdone', { state: { aliasName, nickName }})
sequenceDiagram
participant D as SignupDone
participant R as Router
D->>D: read location.state
alt missing nickName or aliasName
D->>R: navigate('/signup/nickname')
else present
D->>D: Render greeting with nickName/aliasName
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This was referenced Aug 13, 2025
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
이하동일
Summary by CodeRabbit
New Features
Style
Chores