How to get uid of the authenticated user from the storage trigger below:
exports.storageSizeCounter = functions.storage.object().onFinalize(async (object, context) => {...});
auth/uid is available during security rule evaluation but it seems like it's not passed to the trigger (like in context.auth
).
Any way to get the uid inside the storage trigger?