質問

Is there a way to use Firebase.ServerValue.TIMESTAMP or new Date().getTime() in firebase security rules to check against a timestamp value?

役に立ちましたか?

解決

You're looking for the 'now' variable. E.g.:

// Ensure data being written is in the future.
".write": "newData.val() >= now"
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top