Skip to content

The auth guide and the sample still import beforeAuthStateChanged from firebase/auth #3815

Closed

Description

@armando-navarro

The cookie sync in step 2 of the server-side rendering section of docs/auth.md, and sample/src/app/auth/auth.component.ts, import beforeAuthStateChanged from firebase/auth instead of @angular/fire/auth. That was a workaround for #3748: AngularFire's version kept the app marked as busy until its callback first ran, and the callback only runs when someone signs in or out.

The fix (#3770) shipped in AngularFire 20.1.1 and 21.0.0-rc.2.

So the guide and the sample can import beforeAuthStateChanged from @angular/fire/auth like the rest of the guide. The note should stay for the releases that still have the bug: 20.1.0 and earlier, and 21.0.0-rc.0 and rc.1.

Activity

  1. modified the milestones: 21.0.0, 21.1.0 on Oct 24, 2026
  2. added a commit that references this issue on Oct 27, 2026
    503ce83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp: authAuthentication (src/auth).comp: docsDocumentation.type: choreMaintenance with no user-facing behavior change.version: current (v17+)Targets the current modular API (v17+).

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions