0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【firestore】ある日、Error: Missing or insufficient permissions. となったときの対処法

Last updated at Posted at 2021-02-20

ある日を境目に Error: Missing or insufficient permissions. となり、firestoreに接続できなくなった対処法

結論

firebaseの管理画面に移動し、Cloud Firestoreルールのtimestamp.dateを未来の日付にする。

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if
          request.time < timestamp.date(2022, 2, 11); ←未来の日付に設定
    }
  }
}

▼ 対象画面
スクリーンショット 2021-02-20 16.16.46.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?