service firebase.storage {
match /b/b4a-test1.appspot.com/o {
match /auth/{allPaths=**} {
allow read, write: if request.auth != null;
}
match /public/{allPaths=**} {
allow read;
}
match /user/{userId}/{allPaths=**} {
allow read, write: if request.auth.uid == userId;
}
}
}