0
Hello I have an application where the person connects by firebase until then nothing else because this is already configured and working, so I created this button in case the person wants to end the session:
<button onclick="logout()">logout</button>
this button calls the logout function that is like this:
function logout(){ firebase.auth().signOut().then(function(){ console.log('success'); window.location.replace("Login"); },function(){}) }
but he doesn’t give Logout what’s wrong?