I am using Firebase Cloud Functions and created a couple of HTTP requests.
To authenticate the user, I verify the ID toke using the admin sdk.
const decoded = await admin.auth().verifyIdToken(`${tokenId}`);
Is there a way to check if the user has the permissions to read/write from a cloud function depending on the Security Rules without manually checking the same rules in cloud functions?