Closed neelz040 closed 3 years ago
let me clarify, I am able to access Cloud Firestore but my request.auth field is always null (even after login). Login seems to work fine, I am getting the firebase.User and idTokenResult/idToken objects in the frontend after auth.
The issue is that my rules allow only reads for signed in users (request.auth.uid != null) and this is always false. Removing this rule and I am getting my documents.
Let me know if you need more information from me. Thanks.
Hey, thanks for reporting. The package json you copied is just that one from the example app. That doesn't interfere with the library. Need to do my own research if there could be something different between these two updates
Hey, thanks for the quick response. I will have a further look ! But the package json seems not to be the same as the example app?
example app uses
"akita-ng-fire": "^4.3.3", <- I use "akita-ng-fire": "^6.0.0",
"firebase": "^8.0.1", <- I use "firebase": "^8.6.2",
Ah you copied your own package json here in the first comment?
Yes, sorry for the misunderstanding ! Both are mine (after the update and before the update)
Hey @neelz040 , just had a look into it and it worked for me. I served the example application and wrote some rules about the movie collection. If I didn't logged in before, I got redirected to create a movie. If I'm logged in, I can see three movies. Is your error still persist? (I removed the rule again so other uses won't have an issue)
@fritzschoff thanks for testing. I will test it this week again. I'll get back to you !
seems like in my firestore rules the request.auth is always null. This happend after some updates!? Is this a bug or did I miss important changes? Thank you !! :)
package.json After Update:
still works for the following package.json