I want to verify that Firebase Storage rules are working as expected with automated Node.js tests.
One can access Firebase Storage buckets with the Firebase Admin API or a service account, as indicated in Upload files to Firebase Storage using Node.js.
The problem is that using the Admin API or a service account circumvents the storage rules.
There is no apparent way to access Firebase Storage as a given Firebase user, as the Firebase Node.js API does not include a firebase.storage
function.
In short, how can one access Firebase Storage from Node.js as a given Firebase user/uid?