I would like to know if, by itself, callables functions with Firebase Cloud Functions, for example :
exports.myCallableFunction = functions.https.onCall((data, context) => {
//...
});
are safe by themselves or if I need to implement some code inside of them to make sure only authenticated users that calls them gets something out of it. From my understanding, it's called via an API end point, so I'm kind of concerned about everybody being able to call it.
If some logic needs to be implemented, what logic would make sure it's safe?