[#719] Apple 네이티브 인증을 유지하고 프로필 책임을 서버로 이전한다#726
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
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.
🔗 연관된 이슈
🎯 의도
Apple 인증은
ASAuthorizationController기반 기기 내 인증을 유지하면서, iOS가 담당하던 이름 복구와 Firebase Auth 프로필 변경 책임을 서버로 이전하기 위함📝 작업 내용
📌 요약
AppleCustomTokenRequest에 선택적displayName추가fullName을 표시 이름으로 변환해 서버에 전달appleName조회 제거displayName과photoURL변경 제거🔍 상세
hashedNonce를 사용하는 기존ASAuthorizationController흐름 유지challengeId,authorizationCode,displayName?을/auth/apple/custom-token으로 전달customToken을Auth.auth().signIn(withCustomToken:)에서 즉시 사용UserService.upsertUser를 수행하지 않고 기존 공통 Alert 표시credentialEmail전달 계약 유지Infra테스트 빌드와 전체App빌드 통과📸 영상 / 이미지 (Optional)