I\'m struggling with Firestore security rules. I want to check on a value that needs the replace function, i.e. an e-mail address. I can find some documentation in the gener
There are two reasons why you might have been having issues.
replace function was added to Security Rules after you asked your question.replace function uses regular expressions for the first argument and so matching on '.' will match literally everything.Consider instead using: request.auth.token.email.replace('\\.' , ',')