Skip to content

Commit 34d49b3

Browse files
docs(auth): say the linked sample app is the Angular 22 one
The server-rendering guide links the sample app on main as an example of the one-call setup. On this branch the sample folder is an Angular 21 app that does not call initializeBrowserOrServerApp, so the sentence now says which app the link opens and that the call is the same on Angular 21.
1 parent 4479ebe commit 34d49b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/auth.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ With `releaseAfterRender` set, the Firebase app release is done in a `DestroyRef
247247

248248
Call `initializeBrowserOrServerApp` in `app.config.ts`, not in a route's `providers`. A route's `providers` create a child injector that Angular does not destroy when the request finishes, so a `releaseAfterRender` release registered there never runs. The default release is tied to the request's root injector and still happens.
249249

250-
AngularFire's [sample app](https://github.com/angular/angularfire/tree/main/sample) is an example of this step: one `provideFirebaseApp(() => initializeBrowserOrServerApp(...))` in its shared `app.config.ts`, with `app.config.server.ts` adding only `provideServerRendering`.
250+
The [sample app on the `main` branch](https://github.com/angular/angularfire/tree/main/sample) is an example of this step: one `provideFirebaseApp(() => initializeBrowserOrServerApp(...))` in its shared `app.config.ts`, with `app.config.server.ts` adding only `provideServerRendering`. That sample is an Angular 22 app. The `initializeBrowserOrServerApp` call is the same on Angular 21.
251251

252252
ID tokens are short-lived, and a returning visitor's browser can send one that expired while the tab was closed. The server cannot refresh it, because a user restored from an ID token has no refresh token, so Firebase logs an error and the page renders signed out. The browser then refreshes the token and the page updates. A token that cannot be parsed at all, such as a cookie another site set under the same name, also renders signed out, with one warning in the server console.
253253

0 commit comments

Comments
 (0)