gpt4 book ai didi

javascript - Firebase UID 总是 28 个字符吗?

转载 作者:可可西里 更新时间:2023-11-01 02:30:56 25 4
gpt4 key购买 nike

我正在为我的 Firebase 项目创建安全规则,并想将 UIDstring.length == 28 添加到我的数据库规则中。我所有的用户 UID 都是 28 个字符,但我想检查它们是否可以更长或更短?

谢谢

最佳答案

一位 Firebase 开发人员有 this to say在他们的论坛上:

I would not rely on a constant length for the UIDs forever. We chose the current value because it provides a big enough ID space while still being under the 36-character limit for Firebase Analytics user properties.

因此,换句话说,您的建议在未来可能会或可能不会失败,因此您可能应该找到一种更适合 future 的不同实现方式。

关于javascript - Firebase UID 总是 28 个字符吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43911234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com