Firebase存储和数据库规则通信 [英] firebase storage and database rules communication
问题描述
如何解决这个问题?解决方案简单的答案是,目前,来自一个服务的安全规则不能从另一个服务访问数据。请参阅这个线程的更多信息(类似的一般问题)。
如果你希望分享的数据是用户特定的,你可以创建自定义标记,其中包含这个数据,可以跨服务共享(因为这两个服务得到同样的道理)。
i need to store certain variables in the database and in the storage. but is important to have the certainty that this variables will be saved in the two databases and not only in one, furthermore this variables must be have the same values. but i see that storage and database not are in communication. how do I fix this?
The short answer is that currently, security rules from one service can't access data from another service. See this thread for more info (similar general problem).
If the data you're hoping to share is user specific, you can mint custom tokens which contain this data, that can be shared across services (as both services get the same token).
这篇关于Firebase存储和数据库规则通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!