I'm trying to create a project with firebase, I have this code to see if the user is logged in. If it's logged in, I want it to call this function that's in the event sheet.
function verConexao(runtime){
const user = auth.currentUser;
if (user) {
runtime.callFunction ('trocarAnimacao');
//alert("Você está logado");
} else {
//alert("Você não está logado");
}
}