From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Secure your data in Cloud Firestore and Cloud Storage

Secure your data in Cloud Firestore and Cloud Storage

- For this new and very last demonstration I'd like to start from zero. So I have wiped out everything from the database because now we're using also the information of the user to display in the gallery. So we must also include the information of the user. So when we send the data to the database, and last what we're going to do is secure, also the database the access to the database. So let's do that. Let's go back to the form. So you see that we have defined here a new property to indicate their user information. So let's go back to the locations where we have defined this functions to create a new document and then send the data to the database. I'm going to add this info, which is user and that's going to be inputs user. Here we go. That's going to be enough. And also we must specify here in the card I'm going to add this user prop. And here instead. So we used to have this, actually this used to be heart…

Contents