Skip to content

[#377] 최초 가입 직후 ProfileView를 들어가면 얼럿이 뜨는 이슈를 해결한다#379

Merged
opficdev merged 1 commit intodevelopfrom
fix/#377-ProfileView
Apr 8, 2026
Merged

[#377] 최초 가입 직후 ProfileView를 들어가면 얼럿이 뜨는 이슈를 해결한다#379
opficdev merged 1 commit intodevelopfrom
fix/#377-ProfileView

Conversation

@opficdev
Copy link
Copy Markdown
Owner

@opficdev opficdev commented Apr 8, 2026

🔗 연관된 이슈

📝 작업 내용

📌 요약

  • 최초 가입 직후 FirebaseAuth 로그인 상태가 먼저 반영되어 Firestore 사용자 문서가 아직 없는 상태로 메인 화면에 진입하던 문제를 수정
  • 사용자 문서 초기화가 끝난 뒤에만 로그인 완료 상태가 반영되도록 인증 플로우를 조정

🔍 상세

  • AuthService에 최초 로그인 직후의 bootstrap 상태를 제어하는 메서드를 추가
  • 인증 상태 변경 리스너에서 bootstrap 진행 중에는 signedIn = true를 바로 publish하지 않도록 처리
  • AuthenticationRepositoryImpl.signIn(:)에서 소셜 로그인 성공 후 userService.upsertUser(:) 완료까지 기다린 뒤 로그인 완료 상태를 반영
  • 초기 사용자 문서 생성 중 오류가 발생하면 현재 세션을 정리하고 로그인 완료 상태를 취소하도록 보완

📸 영상 / 이미지 (Optional)

Simulator.mov
Simulator.mov
개선 전 개선 후

@opficdev opficdev self-assigned this Apr 8, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 풀 리퀘스트는 로그인 과정에서 사용자 정보 업데이트가 완료될 때까지 인증 상태 알림을 지연시키는 부트스트랩 로직을 추가합니다. AuthService에서 상태 변경 시점을 제어하고, AuthenticationRepositoryImpl에서 로그인 성공 및 실패에 따른 세션 관리를 수행하도록 변경되었습니다. 현재 리뷰 의견이 없으므로 제공할 피드백이 없습니다.

@opficdev opficdev merged commit 057aa2e into develop Apr 8, 2026
1 check passed
@opficdev opficdev deleted the fix/#377-ProfileView branch April 8, 2026 13:48
@opficdev opficdev changed the title fix: 최초 로그인 시 사용자 문서 초기화 완료 후 세션 반영 [#377] 최초 가입 직후 ProfileView를 들어가면 얼럿이 뜨는 이슈를 해결한다 Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

최초 가입 직후 ProfileView를 들어가면 얼럿이 뜨는 이슈를 해결한다

1 participant