My firebase storage is not private despite the rules being set for private

Viewed 749

Background: I'm building a React Native iOS app which will involve uploading images and being able to access them from within the app (but not publicly).

In my rules for Firebase storage, I have the following:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}

As I understand this, only an authorized Firebase user should be able to access the files. However, I've uploaded an image which I can access in any browser:

https://firebasestorage.googleapis.com/v0/b/boiling-heat-632.appspot.com/o/download.jpeg?alt=media&token=7a8708c5-3dda-4088-b456-6dffd6ffc006

Is there something wrong with my security rules? Thanks

1 Answers
Related