읽기를 불가로 해서 생기는 문제이다!

스크린샷 2022-12-21 오후 6.26.32.png

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }
  }
}

로 되어있는것을

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

로 바꾸면 해결된다.

but 아무나 허용하면 firebase 보안에 문제가 생긴다.

인증된 사용자에게만 허용

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}

이렇게 작성하면 로그인한 유저가 파어이베이스에 인증된 유저인지 확인하고 데이터 수정을 허용한다.