1👍
✅
You can’t use firebase.functions().httpsCallable
to invoke a function that was defined with onRequest
. If you want to use a callable type function on both the frontend and backend, your backend needs to be defined as a callable as well using onCall
. See the documentation for more details and examples.
It’s important to keep in mind that HTTPS callable functions are similar but not identical to HTTP functions. To use HTTPS callable functions you must use the client SDK for your platform together with the functions.https backend API (or implement the protocol).
Source:stackexchange.com