chore: add login with facebook

This commit is contained in:
Kyle Fang
2019-10-07 11:46:14 +08:00
parent bf912799af
commit 4db410f5a6
8 changed files with 222 additions and 25 deletions

View File

@@ -20,17 +20,5 @@ service cloud.firestore {
match /readonly/{userId} {
allow read: if isMe(userId)
}
match /conversations/{conversationId} {
function isListedInChat() {
return userLoggedIn()
&& request.auth.uid in get(/databases/$(database)/documents/conversations/$(conversationId)).data.userIds
}
allow read: if userLoggedIn() && request.auth.uid in resource.data.userIds
match /messages/{messageId} {
allow read, create: if isListedInChat()
}
}
}
}