How to make Firebase Functions act as a user instead of being an admin?

后端 未结 3 1233
一整个雨季
一整个雨季 2020-12-20 15:29

My client app is accessing to Firestore through API created by Firebase Functions. However, the Firebase Functions imports firebase-admin which bypass all the d

3条回答
  •  别那么骄傲
    2020-12-20 15:39

    There is currently no way to do this. The Firestore SDK for node doesn't have a way of scoping its access to the database as a particular authenticated user.

    Note that this is different than the Realtime Database SDK, which does allow you to scope to a uid.

提交回复
热议问题