I am implementing firestore database in my android application, before I go to live I came to a new issue that is multiple device login, for short if User is logged with single email Id to multiple devices that I want to allow an only single device that can access the database at the time. I searched and found firestore rules
service cloud.firestore {
match /databases/{database}/documents {
match /<some_path>/ {
allow read, write: if <some_condition>;
}
}
}
but I am not much aware of server-side code, can anyone help me with this.