Skip to content

[#719] Apple 네이티브 인증을 유지하고 프로필 책임을 서버로 이전한다#726

Merged
opficdev merged 3 commits into
developfrom
refactor/#719
Jul 13, 2026
Merged

[#719] Apple 네이티브 인증을 유지하고 프로필 책임을 서버로 이전한다#726
opficdev merged 3 commits into
developfrom
refactor/#719

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

Apple 인증은 ASAuthorizationController 기반 기기 내 인증을 유지하면서, iOS가 담당하던 이름 복구와 Firebase Auth 프로필 변경 책임을 서버로 이전하기 위함

📝 작업 내용

📌 요약

  • AppleCustomTokenRequest에 선택적 displayName 추가
  • Apple fullName을 표시 이름으로 변환해 서버에 전달
  • iOS의 Firestore appleName 조회 제거
  • iOS의 Firebase Auth displayNamephotoURL 변경 제거
  • 요청 인코딩과 이름 변환 계약 테스트 추가

🔍 상세

  • 서버 challenge의 hashedNonce를 사용하는 기존 ASAuthorizationController 흐름 유지
  • challengeId, authorizationCode, displayName?/auth/apple/custom-token으로 전달
  • 서버가 반환한 customTokenAuth.auth().signIn(withCustomToken:)에서 즉시 사용
  • 서버 오류 발생 시 Firebase 로그인과 UserService.upsertUser를 수행하지 않고 기존 공통 Alert 표시
  • 로그인·계정 연결 취소 반환값과 credentialEmail 전달 계약 유지
  • Apple 웹 인증 session·callback·ticket 흐름 미도입
  • DevLog_Firebase #34의 프로필 처리 구현과 배포 선행 필요
  • 변경 파일 SwiftLint 통과
  • Infra 테스트 빌드와 전체 App 빌드 통과

📸 영상 / 이미지 (Optional)

  • 해당 없음

@opficdev opficdev self-assigned this Jul 13, 2026

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

이번 PR은 Apple 로그인 시 사용자 이름을 Firebase Function에 직접 전달하도록 변경하여, 로그인 후 로컬에서 프로필을 업데이트하던 기존 로직을 개선합니다. 리뷰에서는 PersonNameComponents 익스텐션의 displayName 프로퍼티를 로케일(Locale) 주입이 가능하고 공백을 제거하는 displayName(locale:) 메서드로 변경할 것을 제안했습니다. 이를 통해 테스트 및 실행 환경의 로케일에 따른 의존성을 제거하고 일관된 결과를 보장할 수 있으며, 관련 호출부와 테스트 코드도 이에 맞춰 수정하도록 권장하고 있습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread Application/Infra/Tests/Service/FunctionAPIEndpointTests.swift
Comment thread Application/Infra/Tests/Service/FunctionAPIEndpointTests.swift
@opficdev opficdev merged commit 27890e6 into develop Jul 13, 2026
7 checks passed
@opficdev opficdev deleted the refactor/#719 branch July 13, 2026 08:08
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.

Apple 네이티브 인증을 유지하고 프로필 책임을 서버로 이전한다

1 participant