How to avoid Auth error using `preferRest: true`
I am using this library in a cloud function, and sometimes I receive the following response from firestore debug logs. How to avoid that to happen? Have I pass some parameter in the connection settings?
I think it was coincidence but a fun fact about it... I have two functions reading and writing the same data in different firestore instances one is the (default) and another named custom-name, that I have to specify the name of the second one, the first one I just ommit in new Firestore() call, the difference between the function code is only that. Should I have to specify?
Are you connecting to prod or emulator?
To production. It happened once, I didn't see anymore. But one function triggered the auth error once and another not, and the only change between them was the name prop
It could be very tricky for us to identify the issue if it does not repeat itself..i'll ask around to solicit some ideas.