Title: How to properly delay a guard until angular knows the definitive session state · Issue #3656 · angular/angularfire · GitHub
Open Graph Title: How to properly delay a guard until angular knows the definitive session state · Issue #3656 · angular/angularfire
X Title: How to properly delay a guard until angular knows the definitive session state · Issue #3656 · angular/angularfire
Description: Angular 19 Hi, I have been playing around learning how to protect some routes with authentication my problem is that the user state takes a moment to properly notify the final resolution meaning that, if a user is authenticated and acces...
Open Graph Description: Angular 19 Hi, I have been playing around learning how to protect some routes with authentication my problem is that the user state takes a moment to properly notify the final resolution meaning th...
X Description: Angular 19 Hi, I have been playing around learning how to protect some routes with authentication my problem is that the user state takes a moment to properly notify the final resolution meaning th...
Opengraph URL: https://github.com/angular/angularfire/issues/3656
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to properly delay a guard until angular knows the definitive session state","articleBody":"Angular 19\n\nHi, I have been playing around learning how to protect some routes with authentication \n\nmy problem is that the user state takes a moment to properly notify the final resolution \n\nmeaning that, if a user is authenticated and access to a protected route, the user state returns null and then the user, breaking the protection \n\nI have been trying different techniques like BehaviorSubject\u003cUser | null | undefined> and filtering the undefined state to know that firebase still didn't provide a final state \n\nI have also found a guy getting the session from the cookies https://medium.com/@ignatovich.dm/securing-angular-applications-with-route-guards-and-firebase-auth-54c02bdd4811 it is sync and with a straight answer\n\nif I could find some examples for these use cases I will appreciate ! ","author":{"url":"https://github.com/franjorub","@type":"Person","name":"franjorub"},"datePublished":"2025-05-31T03:40:20Z","url":"https://github.com/angular/angularfire/issues/3656"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f77cf554-eb60-c233-3485-ae2e1ee34020 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECCE:1E74B0:6EAA5D:8CAA99:6B0356D1 |
| html-safe-nonce | d5834466a55f82e4be17512eae3e64b9ab5dcee7e44b6f2abe93c450e1ce4a61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0NFOjFFNzRCMDo2RUFBNUQ6OENBQTk5OjZCMDM1NkQxIiwidmlzaXRvcl9pZCI6Ijg0MjUwNjg1OTMzNTE0NDgyNzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c753db9196beaa5250659878d89d58abbc4f2799abda6c4881e38852e524396 |
| hovercard-subject-tag | issue:3104780357 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/angular/angularfire/3656/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f82da9dfee283c48525a8cb4cd490c17714dfbbf36a75c7e0427ec01ebfab41/angular/angularfire/issues/3656 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f82da9dfee283c48525a8cb4cd490c17714dfbbf36a75c7e0427ec01ebfab41/angular/angularfire/issues/3656 |
| og:image:alt | Angular 19 Hi, I have been playing around learning how to protect some routes with authentication my problem is that the user state takes a moment to properly notify the final resolution meaning th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | franjorub |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width