re: Beginner's Guide for Creating a Serverless REST API using NodeJS over Google Cloud Functions VIEW POST

re: I have a dumb question :p Why we have to build an api for firebase database and not directly use the firebase api to access our firestore database?

i have a url-shortener without users logging in. I cannot write to firestore from the Vue client because the firestore rules need a user logged in. I can also not use the firebase-admin because the code runs on the client. So, now i am trying a cloud function as an API relay.


But you can authenticate using an anonymous login(it is available on firebase), so, you can login user using token generates from the client without having username or password.

HI Levi, Thanks for the tip, i will look into that!

Code of Conduct Report abuse