René's URL Explorer Experiment


Title: Auth: Cannot use `browserPopupRedirectResolver` on demand · Issue #3038 · angular/angularfire · GitHub

Open Graph Title: Auth: Cannot use `browserPopupRedirectResolver` on demand · Issue #3038 · angular/angularfire

X Title: Auth: Cannot use `browserPopupRedirectResolver` on demand · Issue #3038 · angular/angularfire

Description: Version info Angular: 12.2.12 Firebase: 9.2.0 AngularFire:: 7.1.1 How to reproduce these conditions Steps to set up and reproduce Initialiaze firebase auth without a popup resolver. This prevents the infamous iframe.js to load. provideAu...

Open Graph Description: Version info Angular: 12.2.12 Firebase: 9.2.0 AngularFire:: 7.1.1 How to reproduce these conditions Steps to set up and reproduce Initialiaze firebase auth without a popup resolver. This prevents t...

X Description: Version info Angular: 12.2.12 Firebase: 9.2.0 AngularFire:: 7.1.1 How to reproduce these conditions Steps to set up and reproduce Initialiaze firebase auth without a popup resolver. This prevents t...

Opengraph URL: https://github.com/angular/angularfire/issues/3038

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auth: Cannot use `browserPopupRedirectResolver` on demand","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n-->\r\n\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:** 12.2.12\r\n\r\n**Firebase:** 9.2.0\r\n\r\n**AngularFire:**: 7.1.1\r\n\r\n### How to reproduce these conditions\r\n\r\n**Steps to set up and reproduce**\r\n\r\nInitialiaze firebase auth without a popup resolver. This prevents the infamous iframe.js to load.\r\n\r\n```        \r\nprovideAuth(() => {\r\n            const auth: Auth = initializeAuth(getApp(), {\r\n                persistence: [\r\n                    indexedDBLocalPersistence,\r\n                    browserLocalPersistence,\r\n                    browserSessionPersistence\r\n                ],\r\n                popupRedirectResolver: undefined\r\n            });\r\n            if (environment.emulator) {\r\n                connectAuthEmulator(auth, 'http://localhost:9099', {disableWarnings: true});\r\n            }\r\n\r\n            return auth;\r\n        }),\r\n```\r\n\r\nThen when a social auth is required, load the resolver on demand:\r\n\r\n```\r\nimport {Auth, browserPopupRedirectResolver, signInWithPopup, GoogleAuthProvider} from '@angular/fire/auth';\r\n\r\n\r\nawait signInWithPopup(this.auth, new GoogleAuthProvider(), browserPopupRedirectResolver);\r\n```\r\n\r\n\u003c!-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->\r\n\r\n### Debug output\r\n\r\n** Errors in the JavaScript console **\r\n\r\n```\r\nGoogleSigninDirective.onclick() TypeError: Class constructor BrowserPopupRedirectResolver cannot be invoked without 'new'\r\n    at angular-fire.js:206\r\n    at angular-fire.js:163\r\n    at ZoneDelegate.invoke (zone.js:372)\r\n    at Object.onInvoke (core.js:28680)\r\n    at ZoneDelegate.invoke (zone.js:371)\r\n    at Zone.run (zone.js:134)\r\n    at NgZone.run (core.js:28534)\r\n    at run (angular-fire.js:163)\r\n    at new \u003canonymous> (angular-fire.js:206)\r\n    at _getInstance (index-238d6fa9.js:535)\r\n    at _withDefaultResolver (index-238d6fa9.js:7714)\r\n    at index-238d6fa9.js:7931\r\n    at Generator.next (\u003canonymous>)\r\n    at asyncGeneratorStep (asyncToGenerator.js:3)\r\n    at _next (asyncToGenerator.js:25)\r\n    at asyncToGenerator.js:32\r\n    at new ZoneAwarePromise (zone.js:1387)\r\n    at asyncToGenerator.js:21\r\n    at _signInWithPopup (index-238d6fa9.js:7934)\r\n    at signInWithPopup (index-238d6fa9.js:7928)\r\n    at angular-fire.js:225\r\n    at angular-fire.js:160\r\n    at ZoneDelegate.invoke (zone.js:372)\r\n    at Zone.run (zone.js:134)\r\n    at NgZone.runOutsideAngular (core.js:28579)\r\n    at runOutsideAngular (angular-fire.js:160)\r\n    at angular-fire.js:225\r\n    at AuthService.\u003canonymous> (auth.service.ts:38)\r\n    at Generator.next (\u003canonymous>)\r\n    at tslib.es6.js:76\r\n    at new ZoneAwarePromise (zone.js:1387)\r\n    at __awaiter (tslib.es6.js:72)\r\n    at AuthService.google (auth.service.ts:37)\r\n    at AuthService.descriptor.value (track-event.decorator.ts:32)\r\n    at GoogleSigninDirective.\u003canonymous> (google-signin.directive.ts:21)\r\n    at Generator.next (\u003canonymous>)\r\n    at tslib.es6.js:76\r\n    at new ZoneAwarePromise (zone.js:1387)\r\n    at __awaiter (tslib.es6.js:72)\r\n    at GoogleSigninDirective.onclick (google-signin.directive.ts:20)\r\n    at GoogleSigninDirective.descriptor.value (catch.decorator.ts:41)\r\n    at GoogleSigninDirective_click_HostBindingHandler (google-signin.directive.ts:8)\r\n    at executeListenerWithErrorHandling (core.js:15315)\r\n    at wrapListenerIn_markDirtyAndPreventDefault (core.js:15353)\r\n    at HTMLButtonElement.\u003canonymous> (platform-browser.js:561)\r\n    at HTMLButtonElement.sentryWrapped (helpers.js:73)\r\n    at ZoneDelegate.invokeTask (zone.js:406)\r\n    at Object.onInvokeTask (core.js:28667)\r\n    at ZoneDelegate.invokeTask (zone.js:405)\r\n    at Zone.runTask (zone.js:178)\r\n```\r\n\r\n### Expected behavior\r\n\r\n\u003c!-- What is the expected behavior? -->\r\n\r\nThe popup should open.\r\n\r\n### Actual behavior\r\n\r\n\u003c!-- What is the actual behavior? -->\r\n\r\nThe popup is not opening, instead you see the described error.\r\n\r\n### Temporary workaround\r\n\r\nAs a temporary workaround, I import all dependencies directly from 'firebase/auth'. Don't know though, if this could have a negative impact on Angular (Zone)\r\n\r\n```\r\nimport {browserPopupRedirectResolver, GoogleAuthProvider, signInWithPopup} from 'firebase/auth';\r\n```\r\n","author":{"url":"https://github.com/vandres","@type":"Person","name":"vandres"},"datePublished":"2021-10-30T10:49:45Z","url":"https://github.com/angular/angularfire/issues/3038"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:abbb8fcb-2d37-e31e-3d9f-400441d2f26a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8154:2C07B2:A2983:DA68B:6B03696B
html-safe-nonce2d6bc25ee0af1632cd0c58388a18863a3c481f4875efa3f51dce60691df83c91
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTU0OjJDMDdCMjpBMjk4MzpEQTY4Qjo2QjAzNjk2QiIsInZpc2l0b3JfaWQiOiI1MzQ0NTM4NTAxODQ3NDExMDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac146bcd9e4743d5f27b33d534ef768161b3c3f344c860fac8fdc4625909062d61
hovercard-subject-tagissue:1040114049
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3038/issue_layout
twitter:imagehttps://opengraph.githubassets.com/961eb307f01b8fd8f2a2358bfe0c402b602ddd004f2f8b0a5dc70cf684b3a7b2/angular/angularfire/issues/3038
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/961eb307f01b8fd8f2a2358bfe0c402b602ddd004f2f8b0a5dc70cf684b3a7b2/angular/angularfire/issues/3038
og:image:altVersion info Angular: 12.2.12 Firebase: 9.2.0 AngularFire:: 7.1.1 How to reproduce these conditions Steps to set up and reproduce Initialiaze firebase auth without a popup resolver. This prevents t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevandres
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/3038#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3038
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3038
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/3038
Reloadhttps://github.com/angular/angularfire/issues/3038
Reloadhttps://github.com/angular/angularfire/issues/3038
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
https://github.com/angular/angularfire
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3038
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3038
Auth: Cannot use browserPopupRedirectResolver on demandhttps://github.com/angular/angularfire/issues/3038#top
https://github.com/vandres
vandreshttps://github.com/vandres
on Oct 30, 2021https://github.com/angular/angularfire/issues/3038#issue-1040114049
vandreshttps://github.com/vandres
on Oct 30, 2021https://github.com/angular/angularfire/issues/3038#event-5543761211
https://github.com/kashesandr
kashesandrhttps://github.com/kashesandr
on Feb 16, 2022https://github.com/angular/angularfire/issues/3038#issuecomment-1041209460
https://github.com/Idomo
Idomohttps://github.com/Idomo
on Feb 27, 2022https://github.com/angular/angularfire/issues/3038#issuecomment-1053644871
@kashesandrhttps://github.com/kashesandr
https://github.com/Judp0m
Judp0mhttps://github.com/Judp0m
on Dec 26, 2022https://github.com/angular/angularfire/issues/3038#issuecomment-1364997233
https://github.com/IvanColucciSW
IvanColucciSWhttps://github.com/IvanColucciSW
on Sep 1, 2023https://github.com/angular/angularfire/issues/3038#issuecomment-1702558518
@Idomohttps://github.com/Idomo
https://github.com/Idomo
Idomohttps://github.com/Idomo
on Sep 1, 2023https://github.com/angular/angularfire/issues/3038#issuecomment-1703220135
@IvanColucciSWhttps://github.com/IvanColucciSW
https://github.com/rdesimone
rdesimonehttps://github.com/rdesimone
on Sep 23, 2023https://github.com/angular/angularfire/issues/3038#issuecomment-1732388940
https://javascript.plainenglish.io/firebase-9-a-breath-of-fresh-air-for-the-angularfire-app-c6d80c1260b2https://javascript.plainenglish.io/firebase-9-a-breath-of-fresh-air-for-the-angularfire-app-c6d80c1260b2
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angularfire/issues/3038
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3038
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.