How to make Firebase Functions act as a user instead of being an admin?
问题 My client app is accessing to Firestore through API created by Firebase Functions. However, the Firebase Functions imports firebase-admin which bypass all the defined security rule. Is there any way I can make my HTTP triggers Function to act as a specific user (for example, by passing an access token from client to server), so that the Functions works under influence of Firebase Functions as well. 回答1: There is currently no way to do this. The Firestore SDK for node doesn't have a way of