Question : how to allow only one domain in firebase auth android
Answered by : lucky-lapwing-tqverta0i95y
rules_version = '2';
service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth.token.email.matches('.*@domain[.]com'); } }
}
Source : https://stackoverflow.com/questions/62977597/how-to-restrict-email-domains-in-firebase-authentication | Last Update : Sat, 26 Feb 22