Hi,
As part of our React/NodeJS/Firebase app we have multiple node.js microservices.
They all use the
Firebase Admin SDK that was initialized using a
service account to get full access to all Firebase services.
The nodejs auth microservice is where we generate our custom JWT tokens for the ReactJS client and where we create new users in Firestore.
Any call to the backend is first being processed by the auth server, then one of the other microservices does the actual job like writing
to the Firestore database. (Not sure if this is the best approach), however, the problem is that
we also need to connect the ReactJS client to Firestore for realtime updates, the interaction between the client and Firestore
should be
READ ONLY! no writes directly from the ReactJS client side.
Is there a way to somehow combine then
web client SDK for authenticated users (by the auth microservice) to get realtime updates directly from Firestore? (again, readonly)
Thanks