How to use a Google service account on a Reactjs Firebase project for using APIs?

旧巷老猫 提交于 2020-03-04 18:17:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!