Would it be possible to get createCustomToken method to FirebaseAuth lib.
With this we could create FirebaseStorage folder with groudId for multiple authenticated users.
With this we could create FirebaseStorage folder with groudId for multiple authenticated users.
B4X:
// Allow reads if the group ID in your token matches the file metadata's `owner` property
// Allow writes if the group ID is in the user's custom token
match /files/{groupId}/{fileName} {
allow read: if resource.metadata.owner == request.auth.token.groupId;
allow write: if request.auth.token.groupId == groupId;
}