Skip to content

docs(auth): document the SwiftUI auth customization APIs - #1442

Open
demolaf wants to merge 3 commits into
docs/changelogfrom
docs/swiftui-customization
Open

demolaf wants to merge 3 commits into
docs/changelogfrom
docs/swiftui-customization

Conversation

@demolaf

@demolaf demolaf commented Dec 1, 2026

Copy link
Copy Markdown
Member

Documents the SwiftUI auth customization APIs that ship in 17.0.0, which so far were only described in the okf-bundle notes. Stacked on #1440.

Changes

  • New "Customizing Default Views" section in the SwiftUI README, between configuration and fully custom views: theming, pickerContent / pickerDestination / signedInContent / reauthContent, the *Screen content slots, the signIn / signUp routes, and AuthProviderAction with triggerSignIn(for:).
  • The API reference lists the AuthPickerView modifiers, documents AuthView, and brings AuthServiceError up to date, including multiFactorReauthenticationRequired.
  • Reauthentication in custom views now covers five error types, with an MFA example.
  • Fixes two broken sample links, and points GETTING_STARTED.md's Customization section at the new README section.

@demolaf
demolaf added this pull request to stack #1443 December 1, 2026 13:42

@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

This pull request updates the documentation for FirebaseSwiftUI to cover customizing default views, including theming, replacing screens, and utilizing screen content slots. It also documents the AuthView enum, updates the AuthServiceError enum, and adds instructions and code examples for handling multi-factor authentication during reauthentication. A review of the added code examples revealed that the multi-factor reauthentication example silently swallows other AuthServiceError cases; it is recommended to use a guard case statement to rethrow unhandled errors instead.

Comment thread FirebaseSwiftUI/README.md Resolved
@demolaf
demolaf force-pushed the docs/swiftui-customization branch from 521bad8 to 7bdf5e9 Compare December 1, 2026 17:22
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.

1 participant