-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Caution - firebase 8.6.2 has issue with authentication - avoid in angularfire? #2857
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
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
add the problem description as reported on firebase-js-sdk. People over there believe it might be related to angularfire instead. |
EDIT: Fixed by downgrading to firebase 8.3.0 I m running into the same issue. I tried to use the firebase emulator but the issue persiste. I made a minimal component to run test:
It 's perfectly fonctionnal with that security rules set:
But run into firestore rejection with that one:
|
Im having similar issues posted on stackoverflow with no responses please help |
to fix it you have to downgrade to firebase 8.6.1, same issue here with the latest firebase and angularfire |
Same issue here, downgrading to 8.6.0 does the trick. |
Per this comment there is a v8.7 of the JS SDK soon-to-be released that seems to solve the problem. |
Please update it to v8.7. |
Closing as it's been fixed in the JS SDK. |
Hi
maybe not an coding issue for angularfire, but I recently ng added angular fire on an angular 12 app and the authentication flow succeeded, but I could not query collection any more due to an issue (to be confirmed) on firebase 8.6.2.
Maybe better to avoid 8.6.2 on angulfire until resolved?
firebase/firebase-js-sdk#4996
Edit: below the issue as reported on firebase js sdk - where it is mentioned that it might be an angularfire issue.
Reported workaround seems indeed downgrading the firebase dependency to max 8.6.1. I went for 8.3.0.
@google-oss-bot - > this better? :)
Hi,
I like to open a ticket related to the error message reported in firebase/firebase-js-sdk#1491
Error in console.log:
Running
NodeJS : v14.16.0 (C:\Program Files\nodejs\node.exe)
npm : 7.6.3
OS : Windows 10
Chrome Version 91.0.4472.77 (Official Build) (64-bit)
Firebase Auth, Firestore
Versions in cli:
Getting above mentioned error trying to access data in firestore - using a simple starter app to access data in firestore
Firestore rules:
High level flow - user authentication using Facebook login (via Firebase) and then a simple query on a collection in the store.
If I change the rules to say:
allow read,write: if true;
orallow read,write: if request.auth==null;
all works fine. If I transplant the angular code of this small project into a copy of a production app, the code works fine (full swap contents of
src
folder): after login, the query delivers the requested data.With these two experiments I assume to have demonstrated an issue with the dependencies related to angular, angularfire and or the firebase sdk - most likely firebase given the things mentioned in firebase/firebase-js-sdk#1491 and the fact that angualar/angularfire only wraps the firebase js sdk. But I could be wrong of course.
package.json for the project which gives errors:
package.json from the production app (which works, also with the simple code):
The text was updated successfully, but these errors were encountered: