Add User.providerData and sendEmailVerification(beforeUpdatingEmail:) - #100
Merged
Conversation
…atingEmail:) Two FirebaseUser APIs that iOS callers rely on had no Android counterpart, so cross-platform code had to fall back to `platformValue` — which is opaque in the SKIP_BRIDGE pass and therefore unreachable from a natively compiled app. - `User.providerData: [UserInfo]` wraps `FirebaseUser.getProviderData()`. The new `UserInfo` class exposes providerID/uid/displayName/email/phoneNumber/ photoURL. Android's synthetic "firebase" provider entry is filtered out so `providerData.first?.providerID` means the same thing on both platforms. - `User.sendEmailVerification(beforeUpdatingEmail:)` wraps `FirebaseUser.verifyBeforeUpdateEmail()`, matching the iOS selector. Both are exercised for shape in SkipFirebaseAuthTests, which compiles against the real FirebaseAuth on iOS. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MxxbQFDQyDkNvFMZaV5Aij
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.
Two
FirebaseUserAPIs that iOS callers rely on have no Android counterpart, so cross-platform code has to fall back toplatformValue— which is opaque in theSKIP_BRIDGEpass and therefore unreachable from a natively compiled app.User.providerData: [UserInfo]wrapsFirebaseUser.getProviderData(). The newUserInfoclass exposesproviderID/uid/displayName/email/phoneNumber/photoURL. Android's synthetic"firebase"provider entry is filtered out soproviderData.first?.providerIDmeans the same thing on both platforms.User.sendEmailVerification(beforeUpdatingEmail:)wrapsFirebaseUser.verifyBeforeUpdateEmail(), matching the iOS selector.Verification
swift build --build-testsis green, i.e. the two new API shapes inSkipFirebaseAuthTestscompile against the real Apple FirebaseAuth SDK — that is what pins the signatures to iOS.