![]() |
1
3
您可以使用自定义用户声明将用户与客户端应用程序或服务提供商应用程序区分开来: https://firebase.google.com/docs/auth/admin/custom-claims 您可以使用Firebase Admin SDK设置自定义声明:
您将在规则中强制访问。例如:
您可以按以下方式宣传您的主张: https://firebase.google.com/docs/auth/admin/custom-claims#propagate_custom_claims_to_the_client 您需要在客户端强制刷新令牌。 |
![]() |
Abderrezak Douba · 未定义命名参数“userId” 3 年前 |
![]() |
Jessica · currentUser正在返回null 3 年前 |
![]() |
Theo · 如何限制实时数据库中特定节点下声明的用户的写访问权限 7 年前 |