Title: Documentation for @angular/fire v6 seems outdated or even more breaking changes · Issue #2310 · angular/angularfire · GitHub
Open Graph Title: Documentation for @angular/fire v6 seems outdated or even more breaking changes · Issue #2310 · angular/angularfire
X Title: Documentation for @angular/fire v6 seems outdated or even more breaking changes · Issue #2310 · angular/angularfire
Description: Version info Angular: 9.0.0-rc.13 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 How to reproduce these conditions I have updated from @angular/fire 5 to 6 and adjusted my application like mentioned in https://github.com/angular/angularfire/blo...
Open Graph Description: Version info Angular: 9.0.0-rc.13 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 How to reproduce these conditions I have updated from @angular/fire 5 to 6 and adjusted my application like mentioned in ht...
X Description: Version info Angular: 9.0.0-rc.13 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 How to reproduce these conditions I have updated from @angular/fire 5 to 6 and adjusted my application like mentioned in ht...
Opengraph URL: https://github.com/angular/angularfire/issues/2310
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation for @angular/fire v6 seems outdated or even more breaking changes","articleBody":"### Version info\r\n\r\n**Angular:** 9.0.0-rc.13\r\n\r\n**Firebase:** 7.8.0\r\n\r\n**AngularFire:** 6.0.0-rc.0\r\n\r\n### How to reproduce these conditions\r\n\r\nI have updated from `@angular/fire` 5 to 6 and adjusted my application like mentioned in https://github.com/angular/angularfire/blob/master/CHANGELOG.md\r\n\r\nBut it seems that `@angular/fire/auth` has even more breaking changes like mentioned. The documentation is the same for v6 like for v5 (https://github.com/angular/angularfire/blob/master/docs/auth/getting-started.md)\r\n\r\nThe example in documentation still says:\r\n\r\n```\r\n constructor(public afAuth: AngularFireAuth) {\r\n }\r\n login() {\r\n this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider());\r\n }\r\n logout() {\r\n this.afAuth.auth.signOut();\r\n }\r\n```\r\n\r\nBut then it says: `Property 'auth' does not exist on type 'AngularFireAuth'.`\r\n\r\nAnd it's right -> auth isn't anymore in https://github.com/angular/angularfire/blob/master/src/auth/auth.ts\r\n\r\nYou only return the auth (`return ɵlazySDKProxy(this, auth, zone)`;)\r\n\r\nSo is it correct to write `this.afAuth.signOut();` ?\r\n\r\nBut then everything is a promise. In v5 I could write: \"`const current = this.afAuth.auth.currentUser;`\", but in v6 it's a promise -> \"`const current = await this.afAuth.auth.currentUser`\"","author":{"url":"https://github.com/paulstelzer","@type":"Person","name":"paulstelzer"},"datePublished":"2020-02-04T06:30:18Z","url":"https://github.com/angular/angularfire/issues/2310"}
| 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:b91f1293-8d9a-c2da-c007-8b3526ca0672 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A978:25866C:337F247:43D57B9:6B036022 |
| html-safe-nonce | a26f725b9ee243d79f4e007a62f8bc791410cab6b6ccdcc790d9a05aa251de0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTc4OjI1ODY2QzozMzdGMjQ3OjQzRDU3Qjk6NkIwMzYwMjIiLCJ2aXNpdG9yX2lkIjoiNjQ3MzA4Njc1NDI0NDIyMzAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 961b78dcb4b6fb20cc1ca597f6afe7aa39aaff888b27c4eb15f2f16ba61fa6ea |
| hovercard-subject-tag | issue:559514952 |
| 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/2310/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38d3d95929ba7f6e02517c04f4b6f9e34915d1a40edb5de459311283c3f36f0e/angular/angularfire/issues/2310 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38d3d95929ba7f6e02517c04f4b6f9e34915d1a40edb5de459311283c3f36f0e/angular/angularfire/issues/2310 |
| og:image:alt | Version info Angular: 9.0.0-rc.13 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 How to reproduce these conditions I have updated from @angular/fire 5 to 6 and adjusted my application like mentioned in ht... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paulstelzer |
| 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