I'm making a chat app using Firebase.
Since I've no Cloud Functions subscription, I'm using a model of 'chat rooms', where if you enter, you can chat with other people.
A chat room in my model will have only two people.
In database, it means only these two users can have access to this chat room.
This is my Firebase rtdb security file
"chat": {
"$chatroomid": {
".read": "auth != null",
".write": "auth != null"
}
}
This allows only authenticated users to access stuff inside a chat room.
But if you're authenticated and somehow know the chat room id, you can join as a third person.
I want to prevent that.
I know it cannot be done using Firebase features directly. Is there a hack I can apply?