I am trying to make my firebase send a https request, containing the user token, to my distant database.
For that, I am trying to trigger a cloud function on the user login.
However, I found out that I cannot do that with the first version of cloud functions. But, now that the v2 has been released, I was wondering if there was now a way to do it ?
Here is my v1 function but that only works with the creation of an account :
const functions = require("firebase-functions");const {onRequest} = require("firebase-functions/v2/https");const {onDocumentCreated} = require("firebase-functions/v2/firestore");exports.onUserConnect = functions.auth.user().onCreate((user) => { console.log("Bonjour !");});Thanks for your answer.