[Feat] logout, signup 연동 - #52
Draft
oungsi2000 wants to merge 6 commits into
Draft
Conversation
사용자 정보 표현을 위한 `User` 클래스와 관련 도메인 모델들을 추가한다. `BirthTime`은 사주 계산을 위해 12시(자시~해시) 시간대와 한자 정보를 관리하며, 관심 운세 카테고리 개수를 5개 이하로 제한하는 검증 로직을 포함한다.
LoginResult의 onboardingToken 타입을 String에서 OnboardingToken value class로 변경한다. OnboardingToken은 빈 문자열을 허용하지 않으며, toString()을 마스킹하여 로그나 크래시 리포트에 토큰이 유출되는 것을 방지한다. 데이터 레이어의 LoginResponse 매핑 로직에 이를 반영한다.
회원가입 요청(`SignupRequest`)에 필요한 사용자 프로필 정보(생년월일, 직업, 관심 카테고리 등)와 온보딩 토큰 필드를 정의한다. 응답(`SignupResponse`)으로 받은 토큰 데이터를 도메인 모델인 `AuthToken`으로 변환하는 `toDomain()` 확장 함수를 추가한다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01299PBN5qzgPtdnPH2e25rs
RemoteAuthDataSource에 postSignup, postLogout을 추가한다. Ktor HttpResponse의 CommonResponse data 필드를 검증하고 반환하는 bodyNotNull() 확장 함수를 도입하여 기존 로그인 및 토큰 갱신 로직의 중복된 null 체크 코드를 제거한다.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
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.
관련 이슈
#50
작업 내용
변경사항 / 상세
중점 리뷰사항
스크린샷 (선택)