I have read Firebase docs, a lot of articles and stackoverflow posting without finding anything that talks about using Firebase Gmail based authentication to access a Firebase firestore collection. Most articles have the firestore in test mode with open access or they are using Firebase's email/password Auth and a collection in firestore. The Firebase's email/password Auth with email/password shows the following rule.
allow read, write: if request.auth.uid = !null.
This doesn't work, because I can't pass the uid (Gmail doesn't have it) when requesting the data from firestore.
Ideally, I would like to use the JWT returned from the Firebase Gmail authentication and sent it to Firestore request. Again, I couldn't find a single example of Firebase firestore using a token.
If there is an article, docs or just experience, please let me know.
Thanks in advance