-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Auth: Cannot use browserPopupRedirectResolver
on demand
#3038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
browserPopupRedirectResolver
on demand
Having similar issue.
"@angular/fire": "^7.2.0", |
@kashesandr The issue is with |
I am using "@angular/fire": "7.5.0" and "firebase": "9.15.0". I am also unable to delay popupRedirectResolver. |
Any news on this bug? I am facing the same issue and the workaround of importing setPersistence from @firebase/auth is not working, because the types of the two Auth objects are not the same. @Idomo can you provide me some help about the workaround you found? Thanks in advance. |
@IvanColucciSW I'm sorry, but I honestly don't remember, it has been a long time since I faced it and probably the new versions of the libraries changes things, so you may try to check if it works with the versions that was mentioned back then, if not you may not implemented it correctly.
|
import from
This works for me for Google and Facebook provider.
|
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.
Then when a social auth is required, load the resolver on demand:
Debug output
** Errors in the JavaScript console **
Expected behavior
The popup should open.
Actual behavior
The popup is not opening, instead you see the described error.
Temporary workaround
As 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)
The text was updated successfully, but these errors were encountered: