title: Your Cloud Firestore database has insecure: any user can read your entire database
body: <p>Building an app, using Firestore database for its content.</p>
  
  <p>Rules are:</p>
  
  <pre><code>service cloud.firestore {
    match /databases/{database}/documents {
      // Allow public read access, but only content owners can write
      match /{document=**} {
        allow read: if true
        allow write: if request.auth.uid == request.resource.data.author_uid
      }
    }
  }
  </code></pre>
  
  <p>As the warning says, I have allow read just set to <code>true</code>, which I understand, is a problem.</p>
  
  <p>How do I make it so my Flutter app can read the contents of my Firestore database, but any random user can't? The app is public/free...etc, so I don't want people to have to login.</p>
  
  <p>Do I give my app some kind of code and check against that? Or...?</p>
  
  <p><strong>Update:</strong>
  I see that there is anonymous login, which could solve the issue, but is that overkill? Does it actually help? Will it then keep my app from being used offline? ...etc</p>