I am making a tool for other people to use and they all have the same domain for their email addresses (Ex: john.james@company.com, jack.mason@company.com). I want them to be able to auth without me having to do any work, but to disallow anyone else to be able to auth if they don't have the domain of @company.com. So far my ruleset is the following
service cloud.firestore {
match /databases/{database}/documents {
match /booths/{id} {
allow read, write: if request.auth.uid == 'censored uid'
allow read, update: if request.auth.token.email_verified
}
}
}
If anyone has any information on the matter please respond. Thanks in advance.