问题
I am trying to integrate a Google service account to my reactjs-Firebase project but I seem to not understand how to do it.
What I have tried:
I selected JSON as my KEY type for the service account and downloaded it to my system and tried to set it using Application default credentials. (didn't work)
but nothing seems to work. and I don't understand how to use the service account to call API in this react-firebase project. am I supposed to authenticate it using Application default credentials or some other method.
Expected result: Want to integrate service account to my reactjs-firebase project so that I can call API's without an API key
Actual result: not able to do that.
Thank you for your help.
来源:https://stackoverflow.com/questions/58621355/how-to-use-a-google-service-account-on-a-reactjs-firebase-project-for-using-apis