* [x] Toggle tutorial + survey back on, and make sure they work as intended * [x] Also make sure, the user has options: * Allow user to freeze either for a few days * Allow user to ignore and discard them * [x] Use [`firestore` REST API]() to store user results (if they consent) * use `https` client: https://stackoverflow.com/questions/4940646/create-https-client-in-nodejs * References * https://firebase.google.com/docs/firestore/use-rest-api * https://firebase.google.com/docs/firestore/reference/rest * https://cloud.google.com/firestore/docs/reference/rest * [Docs: createDocument](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents/createDocument) * Serialization library for `firestore` rest calls: https://github.com/central182/firestore-rest-serdes * [x] Add write-only rules * [ ] Check if we can avoid spam with rules (e.g. max X requests in Y seconds) without `cloud function` * References * https://stackoverflow.com/questions/56487578/how-do-i-implement-a-write-rate-limit-in-cloud-firestore-security-rules * https://stackoverflow.com/a/58895275/11309695
firestoreREST API to store user results (if they consent)httpsclient: https://stackoverflow.com/questions/4940646/create-https-client-in-nodejsfirestorerest calls: https://github.com/central182/firestore-rest-serdescloud function