Skip to content

docs: fix the beforeAuthStateChanged import and the Imagen removal note (21.1.x) - #3821

Open
armando-navarro wants to merge 1 commit into
angular:21.1.xfrom
armando-navarro:docs-after-rc2-21.1.x
Open

armando-navarro wants to merge 1 commit into
angular:21.1.xfrom
armando-navarro:docs-after-rc2-21.1.x

Conversation

@armando-navarro

@armando-navarro armando-navarro commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #3815
Refs #3816

Cherry-pick of #3817 (503ce83 on main) onto 21.1.x, so these corrections ship in 21.1.0. It applies with no conflicts.

…te (angular#3817)

The auth guide's cookie sync and the sample app imported
beforeAuthStateChanged from firebase/auth, because AngularFire's version
kept the app unstable until the first sign-in or sign-out (angular#3748). The
fix (angular#3770) shipped in 20.1.1 and 21.0.0-rc.2, so both now import it
from @angular/fire/auth, and the guide's note lists the releases that
still need the workaround.

The v21 upgrade guide covered only getImagenModel. firebase 12.18
removed every Imagen export, and the migration warns about
getImagenModel only in files that imported an old Vertex AI entry point.

Fixes angular#3815
Fixes angular#3816

(cherry picked from commit 503ce83)
@armando-navarro armando-navarro added bump: patch Size of the change: a fix or docs change that reaches users comp: ai Firebase AI Logic / Vertex AI (src/ai). comp: auth Authentication (src/auth). comp: docs Documentation. type: chore Maintenance with no user-facing behavior change. labels Oct 27, 2026
@armando-navarro armando-navarro added this to the 21.1.0 milestone Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump: patch Size of the change: a fix or docs change that reaches users comp: ai Firebase AI Logic / Vertex AI (src/ai). comp: auth Authentication (src/auth). comp: docs Documentation. type: chore Maintenance with no user-facing behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants