문제

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