尝试将数据设置为Firestore Firebase时出现错误
FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.)
Firestore Firebase规则
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
我试试
await usersCollection.doc(cred.user!.uid).set({
"email": email,
"name": name,
"password": password,
"createdate": DateTime.now().toString(),
});
1条答案
按热度按时间wkyowqbh1#
这里似乎缺少集合名称
尝试