...
Then, go to Database > Rules tab and set up add the following database rules like::
Code Block |
---|
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write:
if request.auth.uid != null && request.auth.token.email.matches('^user_([0-9]+)@.*');
}
}
} |
Rules table will be as the below image:
Now, you can start to use IM App with Firebase.
...