From b17dc2b66d06cc4de043f4cb282bff7cdb6c40bb Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:04:23 +0100 Subject: [PATCH 1/7] docs: add a CHANGELOG with the changes since v16.2.0 --- CHANGELOG.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000..aa6a2486d9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,69 @@ +# Changelog + +All notable changes to FirebaseUI for iOS are recorded here. Earlier releases are described in the [GitHub releases](https://github.com/firebase/FirebaseUI-iOS/releases). + +## Unreleased + +Changes since [v16.2.0](https://github.com/firebase/FirebaseUI-iOS/releases/tag/v16.2.0). Most of this release makes the SwiftUI auth flow (`FirebaseAuthSwiftUI`) customizable: themes, whole-screen content slots and per-screen state, as proposed in [#1400](https://github.com/firebase/FirebaseUI-iOS/issues/1400). + +### ⚠️ Breaking Changes + +- `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:` ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). +- `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error ([#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). + +### Behaviour changes + +- Default appearance: `MFAResolutionView` buttons now use the same styles as the other MFA screens, and in `EmailAuthView` the sign up label goes from semibold to medium and the password recovery label is now medium ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). +- Closing the auth sheet clears its navigation, so reopening it starts on the first screen instead of a pushed screen such as MFA or update password ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). +- Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417), [#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). +- Phone and anonymous users no longer see the Verify email action on the signed-in screen ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417)). +- `DefaultAuthPickerContent`'s provider list selects a provider that is neither credential-based nor an `AuthProviderAction` by reporting an error instead of doing nothing ([#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). +- MFA enrolment keeps Get Started disabled until the selected factor is allowed (it used to start SMS enrolment regardless), and expired or finished sessions return to factor selection ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415)). + +### 🚀 New Features + +#### Theming + +- `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried through the environment to every screen in the auth sheet. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). +- `FirebaseAuthSwiftUI` re-exports `FirebaseAuthUIComponents`, so the theming types are available from `import FirebaseAuthSwiftUI` ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). + +#### Replacing screens + +- `AuthPickerView` gains `.pickerContent { }` and `.pickerContent { state in }` to replace the first screen, and `.pickerDestination { screen in }` to replace pushed screens, while the library keeps driving navigation, MFA and account conflicts. `DefaultAuthPickerContent`, `DefaultAuthMethodPicker` and `DefaultAuthPickerDestination` hold the stock screens ([#1403](https://github.com/firebase/FirebaseUI-iOS/pull/1403), [#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). +- `DefaultAuthPickerContent(authMethodPicker:)` lays out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction` ([#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). +- `.signedInContent { state in }` replaces the screen shown to signed-in users, with `DefaultSignedInContent` as the default ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417)). +- `.reauthContent { prompt in }` replaces the password, phone and email-link reauthentication prompts ([#1423](https://github.com/firebase/FirebaseUI-iOS/pull/1423)). + +#### Per-screen content slots + +Each screen below owns its logic and passes its content a state value with bindings for input, actions, `isValid`, `isLoading` and a localized `errorMessage`. A matching `Default…Content` holds the stock markup, and the existing views keep their signatures. + +- Phone: `EnterPhoneNumberScreen` and `EnterVerificationCodeScreen`. The verification screen adds Resend Code with a 60 second countdown ([#1412](https://github.com/firebase/FirebaseUI-iOS/pull/1412)). +- Email: `EmailAuthScreen`, `PasswordRecoveryScreen` and `EmailLinkScreen`. New `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, give a custom first screen separate sign-in and sign-up screens ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). +- MFA: `MFAEnrolmentScreen`, `MFAResolutionScreen` and `MFAManagementScreen` ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415), [#1416](https://github.com/firebase/FirebaseUI-iOS/pull/1416)). +- Reauthentication: `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen` ([#1423](https://github.com/firebase/FirebaseUI-iOS/pull/1423)). +- Every public state initializer parameter has a default, so previews pass only what they need ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415)). + +#### Email sign-up and links + +- `withEmailSignIn(requireDisplayName:allowNewEmailAccounts:)` restores the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to today's behaviour ([#1428](https://github.com/firebase/FirebaseUI-iOS/pull/1428)). +- An email sign-in link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `forceSameDevice` keeps links on the requesting device, and sign-in links keep the app's own continue URL parameters ([#1429](https://github.com/firebase/FirebaseUI-iOS/pull/1429)). + +### 🛠️ Bug Fixes + +- Reauthenticating an MFA-enrolled user now asks for the second factor. Tapping Confirm used to do nothing visible ([#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). +- Email-link reauthentication completes when the link opens the app after a cold launch ([#1430](https://github.com/firebase/FirebaseUI-iOS/pull/1430)). +- Cancelled or abandoned email-link reauthentication no longer makes later sign-in links route to reauthentication ([#1431](https://github.com/firebase/FirebaseUI-iOS/pull/1431)). +- Signing in closes the signed-out screens, so an email sign-in link shows the signed-in screen instead of the send form ([#1438](https://github.com/firebase/FirebaseUI-iOS/pull/1438)). +- Sending a phone verification code shows progress and ignores repeated taps ([#1412](https://github.com/firebase/FirebaseUI-iOS/pull/1412)). +- Password recovery failures show the error alert instead of failing silently ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). + +### 📦 Dependencies + +- `googlesignin-ios` 10.1.0, `firebase-ios-sdk` 12.19.3 and `googleutilities` 8.1.5 ([#1427](https://github.com/firebase/FirebaseUI-iOS/pull/1427)). + +### 🧰 Internal + +- Faster SwiftUI Auth CI jobs ([#1426](https://github.com/firebase/FirebaseUI-iOS/pull/1426)). + +**Full Changelog**: https://github.com/firebase/FirebaseUI-iOS/compare/v16.2.0...main From c559ba68da64b3182b05a4ccd9feceae0664dcac Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:16:44 +0100 Subject: [PATCH 2/7] docs: drop the internal section from the CHANGELOG --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6a2486d9..52a3931a8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,8 +62,4 @@ Each screen below owns its logic and passes its content a state value with bindi - `googlesignin-ios` 10.1.0, `firebase-ios-sdk` 12.19.3 and `googleutilities` 8.1.5 ([#1427](https://github.com/firebase/FirebaseUI-iOS/pull/1427)). -### 🧰 Internal - -- Faster SwiftUI Auth CI jobs ([#1426](https://github.com/firebase/FirebaseUI-iOS/pull/1426)). - **Full Changelog**: https://github.com/firebase/FirebaseUI-iOS/compare/v16.2.0...main From 4902665de750b10fbebb4587e03154bb89c592bc Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:17:21 +0100 Subject: [PATCH 3/7] docs: match the CHANGELOG to the firebase-admin-dart format --- CHANGELOG.md | 94 ++++++++++++++++------------------------------------ 1 file changed, 29 insertions(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52a3931a8a..03cc279ca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,65 +1,29 @@ -# Changelog - -All notable changes to FirebaseUI for iOS are recorded here. Earlier releases are described in the [GitHub releases](https://github.com/firebase/FirebaseUI-iOS/releases). - -## Unreleased - -Changes since [v16.2.0](https://github.com/firebase/FirebaseUI-iOS/releases/tag/v16.2.0). Most of this release makes the SwiftUI auth flow (`FirebaseAuthSwiftUI`) customizable: themes, whole-screen content slots and per-screen state, as proposed in [#1400](https://github.com/firebase/FirebaseUI-iOS/issues/1400). - -### ⚠️ Breaking Changes - -- `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:` ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). -- `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error ([#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). - -### Behaviour changes - -- Default appearance: `MFAResolutionView` buttons now use the same styles as the other MFA screens, and in `EmailAuthView` the sign up label goes from semibold to medium and the password recovery label is now medium ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). -- Closing the auth sheet clears its navigation, so reopening it starts on the first screen instead of a pushed screen such as MFA or update password ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). -- Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417), [#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). -- Phone and anonymous users no longer see the Verify email action on the signed-in screen ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417)). -- `DefaultAuthPickerContent`'s provider list selects a provider that is neither credential-based nor an `AuthProviderAction` by reporting an error instead of doing nothing ([#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). -- MFA enrolment keeps Get Started disabled until the selected factor is allowed (it used to start SMS enrolment regardless), and expired or finished sessions return to factor selection ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415)). - -### 🚀 New Features - -#### Theming - -- `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried through the environment to every screen in the auth sheet. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). -- `FirebaseAuthSwiftUI` re-exports `FirebaseAuthUIComponents`, so the theming types are available from `import FirebaseAuthSwiftUI` ([#1402](https://github.com/firebase/FirebaseUI-iOS/pull/1402)). - -#### Replacing screens - -- `AuthPickerView` gains `.pickerContent { }` and `.pickerContent { state in }` to replace the first screen, and `.pickerDestination { screen in }` to replace pushed screens, while the library keeps driving navigation, MFA and account conflicts. `DefaultAuthPickerContent`, `DefaultAuthMethodPicker` and `DefaultAuthPickerDestination` hold the stock screens ([#1403](https://github.com/firebase/FirebaseUI-iOS/pull/1403), [#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). -- `DefaultAuthPickerContent(authMethodPicker:)` lays out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction` ([#1411](https://github.com/firebase/FirebaseUI-iOS/pull/1411)). -- `.signedInContent { state in }` replaces the screen shown to signed-in users, with `DefaultSignedInContent` as the default ([#1417](https://github.com/firebase/FirebaseUI-iOS/pull/1417)). -- `.reauthContent { prompt in }` replaces the password, phone and email-link reauthentication prompts ([#1423](https://github.com/firebase/FirebaseUI-iOS/pull/1423)). - -#### Per-screen content slots - -Each screen below owns its logic and passes its content a state value with bindings for input, actions, `isValid`, `isLoading` and a localized `errorMessage`. A matching `Default…Content` holds the stock markup, and the existing views keep their signatures. - -- Phone: `EnterPhoneNumberScreen` and `EnterVerificationCodeScreen`. The verification screen adds Resend Code with a 60 second countdown ([#1412](https://github.com/firebase/FirebaseUI-iOS/pull/1412)). -- Email: `EmailAuthScreen`, `PasswordRecoveryScreen` and `EmailLinkScreen`. New `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, give a custom first screen separate sign-in and sign-up screens ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). -- MFA: `MFAEnrolmentScreen`, `MFAResolutionScreen` and `MFAManagementScreen` ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415), [#1416](https://github.com/firebase/FirebaseUI-iOS/pull/1416)). -- Reauthentication: `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen` ([#1423](https://github.com/firebase/FirebaseUI-iOS/pull/1423)). -- Every public state initializer parameter has a default, so previews pass only what they need ([#1415](https://github.com/firebase/FirebaseUI-iOS/pull/1415)). - -#### Email sign-up and links - -- `withEmailSignIn(requireDisplayName:allowNewEmailAccounts:)` restores the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to today's behaviour ([#1428](https://github.com/firebase/FirebaseUI-iOS/pull/1428)). -- An email sign-in link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `forceSameDevice` keeps links on the requesting device, and sign-in links keep the app's own continue URL parameters ([#1429](https://github.com/firebase/FirebaseUI-iOS/pull/1429)). - -### 🛠️ Bug Fixes - -- Reauthenticating an MFA-enrolled user now asks for the second factor. Tapping Confirm used to do nothing visible ([#1419](https://github.com/firebase/FirebaseUI-iOS/pull/1419)). -- Email-link reauthentication completes when the link opens the app after a cold launch ([#1430](https://github.com/firebase/FirebaseUI-iOS/pull/1430)). -- Cancelled or abandoned email-link reauthentication no longer makes later sign-in links route to reauthentication ([#1431](https://github.com/firebase/FirebaseUI-iOS/pull/1431)). -- Signing in closes the signed-out screens, so an email sign-in link shows the signed-in screen instead of the send form ([#1438](https://github.com/firebase/FirebaseUI-iOS/pull/1438)). -- Sending a phone verification code shows progress and ignores repeated taps ([#1412](https://github.com/firebase/FirebaseUI-iOS/pull/1412)). -- Password recovery failures show the error alert instead of failing silently ([#1414](https://github.com/firebase/FirebaseUI-iOS/pull/1414)). - -### 📦 Dependencies - -- `googlesignin-ios` 10.1.0, `firebase-ios-sdk` 12.19.3 and `googleutilities` 8.1.5 ([#1427](https://github.com/firebase/FirebaseUI-iOS/pull/1427)). - -**Full Changelog**: https://github.com/firebase/FirebaseUI-iOS/compare/v16.2.0...main +## 17.0.0-wip + +- **Breaking:** `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:`. +- **Breaking:** `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error. +- Add SwiftUI auth theming with `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried to every screen in the auth sheet. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place. +- Re-export `FirebaseAuthUIComponents` from `FirebaseAuthSwiftUI`, so the theming types are available from `import FirebaseAuthSwiftUI`. +- Add `.pickerContent` and `.pickerDestination` to `AuthPickerView` to replace the first screen and pushed screens, while the library keeps driving navigation, MFA and account conflicts. `DefaultAuthPickerContent`, `DefaultAuthMethodPicker` and `DefaultAuthPickerDestination` hold the stock screens. +- Add `DefaultAuthPickerContent(authMethodPicker:)` to lay out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction`. +- Add `.signedInContent` to replace the screen shown to signed-in users, with `DefaultSignedInContent` as the default. +- Add `.reauthContent` to replace the password, phone and email-link reauthentication prompts. +- Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with input bindings, actions, `isValid`, `isLoading` and a localized `errorMessage`, and a matching `Default…Content` holds the stock markup. +- Add `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. +- Add Resend Code with a 60 second countdown to the phone verification screen. +- Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behaviour. +- Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `forceSameDevice` keeps links on the requesting device. +- Changed the default look of `MFAResolutionView` buttons to match the other MFA screens, and of the `EmailAuthView` sign up and password recovery labels. +- Closing the auth sheet now clears its navigation, so reopening it starts on the first screen. +- Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging. +- Phone and anonymous users no longer see the Verify email action on the signed-in screen. +- MFA enrolment keeps Get Started disabled until the selected factor is allowed, and expired or finished sessions return to factor selection. +- Fixed reauthenticating an MFA-enrolled user doing nothing visible. It now asks for the second factor. +- Fixed email-link reauthentication not completing when the link opens the app after a cold launch. +- Fixed cancelled or abandoned email-link reauthentication making later sign-in links route to reauthentication. +- Fixed an email sign-in link leaving the sheet on the email-link screen instead of showing the signed-in screen. +- Fixed email sign-in links dropping the app's own continue URL parameters. +- Fixed sending a phone verification code showing no progress and accepting repeated taps. +- Fixed password recovery failures being dropped instead of shown. +- Selecting a provider that is neither credential-based nor an `AuthProviderAction` now reports an error instead of doing nothing. +- Update dependencies: `googlesignin-ios` 10.1.0, `firebase-ios-sdk` 12.19.3 and `googleutilities` 8.1.5. From 1363b104c13f6c6c46317cf659bfaae9135a5c69 Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:19:28 +0100 Subject: [PATCH 4/7] docs: drop the -wip suffix from the CHANGELOG version --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03cc279ca9..e7940590c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 17.0.0-wip +## 17.0.0 - **Breaking:** `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:`. - **Breaking:** `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error. From 1452b248cccb56c1a248f45657049940d734ff34 Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Tue, 24 Nov 2026 12:08:25 +0100 Subject: [PATCH 5/7] docs: address review of the CHANGELOG --- CHANGELOG.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7940590c6..ecd29741fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,13 +11,13 @@ - Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with input bindings, actions, `isValid`, `isLoading` and a localized `errorMessage`, and a matching `Default…Content` holds the stock markup. - Add `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. - Add Resend Code with a 60 second countdown to the phone verification screen. -- Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behaviour. -- Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `forceSameDevice` keeps links on the requesting device. +- Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behavior. +- Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. Add `forceSameDevice` to `withEmailLinkSignIn` to keep links on the requesting device. - Changed the default look of `MFAResolutionView` buttons to match the other MFA screens, and of the `EmailAuthView` sign up and password recovery labels. - Closing the auth sheet now clears its navigation, so reopening it starts on the first screen. - Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging. - Phone and anonymous users no longer see the Verify email action on the signed-in screen. -- MFA enrolment keeps Get Started disabled until the selected factor is allowed, and expired or finished sessions return to factor selection. +- MFA enrollment keeps Get Started disabled until the selected factor is allowed, and expired or finished sessions return to factor selection. - Fixed reauthenticating an MFA-enrolled user doing nothing visible. It now asks for the second factor. - Fixed email-link reauthentication not completing when the link opens the app after a cold launch. - Fixed cancelled or abandoned email-link reauthentication making later sign-in links route to reauthentication. @@ -26,4 +26,3 @@ - Fixed sending a phone verification code showing no progress and accepting repeated taps. - Fixed password recovery failures being dropped instead of shown. - Selecting a provider that is neither credential-based nor an `AuthProviderAction` now reports an error instead of doing nothing. -- Update dependencies: `googlesignin-ios` 10.1.0, `firebase-ios-sdk` 12.19.3 and `googleutilities` 8.1.5. From 212de8a208ccc3ba7ee00a5f0cff9276c2a940ab Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Tue, 1 Dec 2026 14:38:19 +0100 Subject: [PATCH 6/7] docs: add missing CHANGELOG entries and a release step for it --- CHANGELOG.md | 15 ++++++++------- .../packaging/spm-and-cocoapods-workflow.md | 3 +++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecd29741fd..5ae90584ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,27 +2,28 @@ - **Breaking:** `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:`. - **Breaking:** `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error. -- Add SwiftUI auth theming with `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried to every screen in the auth sheet. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place. +- Add SwiftUI auth theming with `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried to every screen in the auth sheet. Apply the typography to your own text with `.authFont(_:weight:)`. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place. - Re-export `FirebaseAuthUIComponents` from `FirebaseAuthSwiftUI`, so the theming types are available from `import FirebaseAuthSwiftUI`. - Add `.pickerContent` and `.pickerDestination` to `AuthPickerView` to replace the first screen and pushed screens, while the library keeps driving navigation, MFA and account conflicts. `DefaultAuthPickerContent`, `DefaultAuthMethodPicker` and `DefaultAuthPickerDestination` hold the stock screens. - Add `DefaultAuthPickerContent(authMethodPicker:)` to lay out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction`. -- Add `.signedInContent` to replace the screen shown to signed-in users, with `DefaultSignedInContent` as the default. -- Add `.reauthContent` to replace the password, phone and email-link reauthentication prompts. +- Add `.signedInContent` to replace the screen shown to signed-in users, with `DefaultSignedInContent` as the default. `SignedInView` gains a public `init()`. +- Add `.reauthContent` to replace the password, phone and email-link reauthentication prompts. The closure receives a `ReauthPrompt` and can return `DefaultReauthContent(prompt:)` for the prompts it keeps stock. - Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with input bindings, actions, `isValid`, `isLoading` and a localized `errorMessage`, and a matching `Default…Content` holds the stock markup. - Add `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. - Add Resend Code with a 60 second countdown to the phone verification screen. - Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behavior. -- Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. Add `forceSameDevice` to `withEmailLinkSignIn` to keep links on the requesting device. +- Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `handleSignInLink(url:)` still throws for such a link but keeps it in `pendingEmailLink`, and `confirmEmailLinkSignIn(email:)` finishes it. Add `forceSameDevice` to `withEmailLinkSignIn` to keep links on the requesting device. - Changed the default look of `MFAResolutionView` buttons to match the other MFA screens, and of the `EmailAuthView` sign up and password recovery labels. - Closing the auth sheet now clears its navigation, so reopening it starts on the first screen. - Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging. +- Signing in now closes the screens that only apply while signed out (sign-in, sign-up, email link, password recovery, phone verification and MFA resolution), so an email sign-in link lands on the signed-in screen instead of the email-link screen. - Phone and anonymous users no longer see the Verify email action on the signed-in screen. - MFA enrollment keeps Get Started disabled until the selected factor is allowed, and expired or finished sessions return to factor selection. -- Fixed reauthenticating an MFA-enrolled user doing nothing visible. It now asks for the second factor. +- Fixed reauthenticating an MFA-enrolled user doing nothing visible. It now asks for the second factor, and `signOut()` clears the stored MFA resolver. - Fixed email-link reauthentication not completing when the link opens the app after a cold launch. - Fixed cancelled or abandoned email-link reauthentication making later sign-in links route to reauthentication. -- Fixed an email sign-in link leaving the sheet on the email-link screen instead of showing the signed-in screen. - Fixed email sign-in links dropping the app's own continue URL parameters. -- Fixed sending a phone verification code showing no progress and accepting repeated taps. +- Fixed sending a phone verification code showing no progress. +- Fixed the phone, email, password recovery and MFA actions accepting taps while their input is invalid or an action is in flight. - Fixed password recovery failures being dropped instead of shown. - Selecting a provider that is neither credential-based nor an `AuthProviderAction` now reports an error instead of doing nothing. diff --git a/okf-bundle/packaging/spm-and-cocoapods-workflow.md b/okf-bundle/packaging/spm-and-cocoapods-workflow.md index 3077474040..e4b3e3b70c 100644 --- a/okf-bundle/packaging/spm-and-cocoapods-workflow.md +++ b/okf-bundle/packaging/spm-and-cocoapods-workflow.md @@ -38,6 +38,9 @@ Canonical consumer docs: [`README.md`](../../README.md), [`GETTING_STARTED.md`]( [`release-swift.sh`](../../release-swift.sh) updates `FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Version.swift` (human-driven; agents need explicit user request). + - Changelog: before tagging a release, make sure [`CHANGELOG.md`](../../CHANGELOG.md) + has an entry for the version, with breaking changes listed first under a + **Breaking:** prefix. 5. **Swift language mode:** SwiftUI Auth targets set `.swiftLanguageMode(.v6)` in `Package.swift`. Do not silently relax to silence concurrency errors — fix or record an accepted exception. ## `Package.swift` ownership From 83964077c3d594ce3c7164a0dc5a832eb0db4bd7 Mon Sep 17 00:00:00 2001 From: Ademola Fadumo <48495111+demolaf@users.noreply.github.com> Date: Tue, 1 Dec 2026 18:22:32 +0100 Subject: [PATCH 7/7] docs: fold the signIn/signUp routes into their breaking entry --- CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ae90584ed..161e868228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## 17.0.0 -- **Breaking:** `AuthView` gains `signIn` and `signUp` cases, so an exhaustive `switch` over `AuthView` needs new branches or a `default:`. +- **Breaking:** `AuthView` gains `signIn` and `signUp` cases, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. An exhaustive `switch` over `AuthView` needs new branches or a `default:`. - **Breaking:** `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error. - Add SwiftUI auth theming with `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried to every screen in the auth sheet. Apply the typography to your own text with `.authFont(_:weight:)`. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place. - Re-export `FirebaseAuthUIComponents` from `FirebaseAuthSwiftUI`, so the theming types are available from `import FirebaseAuthSwiftUI`. @@ -8,8 +8,7 @@ - Add `DefaultAuthPickerContent(authMethodPicker:)` to lay out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction`. - Add `.signedInContent` to replace the screen shown to signed-in users, with `DefaultSignedInContent` as the default. `SignedInView` gains a public `init()`. - Add `.reauthContent` to replace the password, phone and email-link reauthentication prompts. The closure receives a `ReauthPrompt` and can return `DefaultReauthContent(prompt:)` for the prompts it keeps stock. -- Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with input bindings, actions, `isValid`, `isLoading` and a localized `errorMessage`, and a matching `Default…Content` holds the stock markup. -- Add `AuthView.signIn` and `AuthView.signUp` routes, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. +- Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with actions, `isLoading` and a localized `errorMessage`, plus input bindings and `isValid` where the screen takes input, and a matching `Default…Content` holds the stock markup. - Add Resend Code with a 60 second countdown to the phone verification screen. - Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behavior. - Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `handleSignInLink(url:)` still throws for such a link but keeps it in `pendingEmailLink`, and `confirmEmailLinkSignIn(email:)` finishes it. Add `forceSameDevice` to `withEmailLinkSignIn` to keep links on the requesting device.