I want to create a simple app where I can invite other users to view non-public content without forcing them to make an account. I'm trying to structure my DB/write Firestore security rules to do this.
So far, I have a document with:
- content (only invited users should be able to access this)
- passcode (six-letter string unique to a document)
- array of allowed users (email addresses)
Ideally when an invited user inputs the code and their email address, it'll identify and read the correct document (if the passcode matches and their email address is in the array). Is this possible?