using firebase admin sdk on a web client

对着背影说爱祢 提交于 2020-01-23 03:12:06

问题


I need to use the firebase admin sdk to authenticate myself on the back-office of my project.

using the sdk on the server side is working just fine.

but with a reactjs component (a chat component) to chat between web client and a mobile app, the sdk is not working displaying the following error:

Uncaught TypeError: rtdb.initStandalone is not a function at DatabaseService../node_modules/firebase-admin/lib/database/database.js.DatabaseService.getDatabase

Has anyone tried this before or is it just impossible to use the admin sdk on the web client interface ?

来源:https://stackoverflow.com/questions/48812653/using-firebase-admin-sdk-on-a-web-client

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