I have a function one and a Firebase authstatechange function inside it but I can't reach the function two outside. the code:
function one() {
firebase.auth().onAuthStateChanged(function(user) {
//code here
function two() {
//code here
}
});
}
// how to call function two here?