首页 > 解决方案 > 查询firestore时如何附加令牌?

问题描述

好的,我来自使用 REST API 登录并从 Firestore 获取数据,规则要求 auth 用户读写。使用 HTTP Get 并附加我从登录获得的令牌。

现在,我尝试使用 Angularfire 从 Firestore 查询数据,如何将身份验证令牌附加到

afs.collection('items', ref => ref.where('size', '==', size)).valueChanges()

标签: google-cloud-firestorefirebase-authenticationangularfire2

解决方案


推荐阅读