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.

firebaseでデータにアクセスできなくなったらやること

Posted at

firebaseのDBのルールタブをクリック。

すると以下のようなのが出てきます。

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {

    // This rule allows anyone on the internet to view, edit, and delete
    // all data in your Firestore database. It is useful for getting
    // started, but it is configured to expire after 30 days because it
    // leaves your app open to attackers. At that time, all client
    // requests to your Firestore database will be denied.
    //
    // Make sure to write security rules for your app before that time, or else
    // your app will lose access to your Firestore database
    match /{document=**} {
      allow read, write: if request.time < timestamp.date(2020, 7, 27);
    }
  }
}

この一番下の行に日付がありますね。

      allow read, write: if request.time < timestamp.date(2020, 7, 27);

これがDBに接続できるリミットです。

ですのでこの日付を未来の日付に設定します。

      allow read, write: if request.time < timestamp.date(2021, 7, 27);

こんなかんじです。

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?