google-cloud-firestore - 查询firestore时如何附加令牌?
问题描述
好的,我来自使用 REST API 登录并从 Firestore 获取数据,规则要求 auth 用户读写。使用 HTTP Get 并附加我从登录获得的令牌。
现在,我尝试使用 Angularfire 从 Firestore 查询数据,如何将身份验证令牌附加到
afs.collection('items', ref => ref.where('size', '==', size)).valueChanges()
解决方案
推荐阅读
- python - 有没有办法将 while 循环的结果(使用 random 模块)存储在一个新变量中 - 以便重用?
- html - 由于“脚本和导航等内容”而未上传文件
- unity3d - 当我在 Unity 游戏中的对话之间变化太快时,会出现奇怪的角色
- python - python - 如何使用python多处理将输入变量传递给另一个函数?
- html - SVG 资源创建无限数量的 HTTP 请求/调用
- reactjs - 如何定位material-ui按钮的值或标签而不是类?
- python - 按两列分组并获得第三列的最大值
- html - 如何在R中获取模式的行号
- ruby - 正则表达式在术语之前选择文本
- linux - 将 1 级文件夹位置内的 2 级文件夹和文件压缩为单独的 7Z 档案