You can force the Firestore client to use the REST transport instead of gRPC. Follow below steps
Install the required packages
Set the transport to REST when creating the Firestore client
Authenticate as usual (using service account credentials)