What should the database and storage rules be so that each user can only read, write and upload their own files?
once you create a user with a UID you can give specific permissions in Firestore Database rules like this:
rules_version = ‘2’;
service cloud.firestore {
match /databases/{database}/documents {
// Replace this with your admin UID
function isAdmin() {
return request.auth != null && request.auth.uid == “UID”;
}
match /{document=**} {
allow read, write: if isAdmin();
}
}
}