Title: Setting Persistence Doesn't Work · Issue #3131 · angular/angularfire · GitHub
Open Graph Title: Setting Persistence Doesn't Work · Issue #3131 · angular/angularfire
X Title: Setting Persistence Doesn't Work · Issue #3131 · angular/angularfire
Description: Currently running setPersistence with any Persistence breaks. I was able to work around this by just importing setPersistence from @firebase/auth instead of @angular/fire/auth. Version info Angular: 13.1.3 Firebase: 9.6.4 AngularFire: 7....
Open Graph Description: Currently running setPersistence with any Persistence breaks. I was able to work around this by just importing setPersistence from @firebase/auth instead of @angular/fire/auth. Version info Angular...
X Description: Currently running setPersistence with any Persistence breaks. I was able to work around this by just importing setPersistence from @firebase/auth instead of @angular/fire/auth. Version info Angular...
Opengraph URL: https://github.com/angular/angularfire/issues/3131
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting Persistence Doesn't Work","articleBody":"Currently running `setPersistence` with any `Persistence` breaks. I was able to work around this by just importing `setPersistence` from `@firebase/auth` instead of `@angular/fire/auth`.\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. -->\r\n\r\n**Angular:** 13.1.3\r\n\r\n**Firebase:** 9.6.4\r\n\r\n**AngularFire:** 7.2.0\r\n\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):** Node 17.x; OS Windows 11; Browser Chrome;\r\n\r\n### How to reproduce these conditions\r\n\r\nTry setting persistance:\r\n\r\n```ts\r\nsetPersistence(this.auth, browserSessionPersistence).catch(console.error);\r\n```\r\n\r\n### Debug output\r\n\r\n```\r\nTypeError: Class constructor BrowserSessionPersistence cannot be invoked without 'new'\r\n at angular-fire.js:206:29\r\n at angular-fire.js:163:45\r\n at ZoneDelegate.invoke (zone.js:372:1)\r\n at Object.onInvoke (core.mjs:25457:1)\r\n at ZoneDelegate.invoke (zone.js:371:1)\r\n at Zone.run (zone.js:134:1)\r\n at NgZone.run (core.mjs:25311:1)\r\n at run (angular-fire.js:163:35)\r\n at new \u003canonymous> (angular-fire.js:206:16)\r\n at _getInstance (index-bc414788.js:535:16)\r\n```\r\n\r\n### Expected behavior\r\n\r\nSetting persistence works.\r\n\r\n### Actual behavior\r\n\r\nSetting persistence doesn't work.\r\n","author":{"url":"https://github.com/flauc","@type":"Person","name":"flauc"},"datePublished":"2022-01-25T06:51:01Z","url":"https://github.com/angular/angularfire/issues/3131"}
| 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:c0088f11-85c4-6e25-ceba-46972731d6bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80A0:2412:2D9B353:3C8C86C:6B0366C6 |
| html-safe-nonce | 97f3b74490b70f49cc41883e5bbf62c196e6500f2371b13ef8c01d019357e168 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEEwOjI0MTI6MkQ5QjM1MzozQzhDODZDOjZCMDM2NkM2IiwidmlzaXRvcl9pZCI6IjQxNDk4ODI2NTM5OTY0NDMzMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52a842da29d7a9304bb455f24494f538b5451129155b5fa344a13a27a9018eba |
| hovercard-subject-tag | issue:1113496646 |
| 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/3131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/073888ad718a2d3ae811d0bd7f17113b7f10fb5bee49cc7e0abb9c4b5fcd4577/angular/angularfire/issues/3131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/073888ad718a2d3ae811d0bd7f17113b7f10fb5bee49cc7e0abb9c4b5fcd4577/angular/angularfire/issues/3131 |
| og:image:alt | Currently running setPersistence with any Persistence breaks. I was able to work around this by just importing setPersistence from @firebase/auth instead of @angular/fire/auth. Version info Angular... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flauc |
| 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 | canary-2 |
| 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