我想知道是否getAuth().uid敏感/私密?我计划在用户帖子中使用它,例如:post.created_by: getAuth().uid。这使得编写规则/逻辑变得更加容易。
getAuth().uid
post.created_by: getAuth().uid
另一种方法是在将用户添加到数据库时使用推送 ID,这是我试图避免的。
firebase firebase-authentication
firebase ×1
firebase-authentication ×1