Title: docs(app-check): explain App Check during server rendering by armando-navarro · Pull Request #3775 · angular/angularfire · GitHub
Open Graph Title: docs(app-check): explain App Check during server rendering by armando-navarro · Pull Request #3775 · angular/angularfire
X Title: docs(app-check): explain App Check during server rendering by armando-navarro · Pull Request #3775 · angular/angularfire
Description: Fixes #3774 Refs #3256 Adds a "Server-side rendering" section to docs/app-check.md for the behavior #3773 introduced. #3773's development-mode warning links to this page. Changes Explains that AngularFire does not create an App Check instance during server rendering, and that inject(AppCheck) returns null there although its type says AppCheck. Explains that Firebase requests made during server rendering carry no App Check token, and links Firebase's recommended appCheckToken route for products that enforce App Check. Shows the APP_CHECK_ON_SERVER opt-in in a full app.config.server.ts. For 21.0.0-rc.1 and earlier, shows a browser-only config that keeps provideAppCheck off the server, with inject(AppCheck, { optional: true }). Verification Followed the section literally in a new ng new --ssr Angular 21 app: 21.0.0-rc.1, the Dependency Injection setup as written: ng build fails with ReferenceError: document is not defined, as the section says. 21.0.0-rc.1, the browser-only config: the build succeeds, AppCheck is null on the server, and App Check starts in the browser. A canary built from main after #3773, the Dependency Injection setup as written: the build succeeds and AppCheck is null on the server. The same canary with the APP_CHECK_ON_SERVER snippet as written: it compiles, and App Check runs on the server.
Open Graph Description: Fixes #3774 Refs #3256 Adds a "Server-side rendering" section to docs/app-check.md for the behavior #3773 introduced. #3773's development-mode warning links to this page. Changes Exp...
X Description: Fixes #3774 Refs #3256 Adds a "Server-side rendering" section to docs/app-check.md for the behavior #3773 introduced. #3773's development-mode warning links to this page. ...
Opengraph URL: https://github.com/angular/angularfire/pull/3775
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7360ecb1-2adb-46a1-5297-0dec5f908deb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D0D0:34DFBA:1AA068B:21E611D:6B03CA07 |
| html-safe-nonce | 2aa107b67f46945c06f3196941173c43dfa8d0d4f90763946dc1221a73608f53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEQwOjM0REZCQToxQUEwNjhCOjIxRTYxMUQ6NkIwM0NBMDciLCJ2aXNpdG9yX2lkIjoiNzUwMDAzMDMwMTA1NDQyMTUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d36d06c446659eb605bb7779ef3877657fe2c69bb4b7029bbabdb25ae19e7d0 |
| hovercard-subject-tag | pull_request:4659051708 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3775/files |
| twitter:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| og:image:alt | Fixes #3774 Refs #3256 Adds a "Server-side rendering" section to docs/app-check.md for the behavior #3773 introduced. #3773's development-mode warning links to this page. Changes Exp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width