1
2
3
4
5
6
7
8
9
10
11
//logout
$("#logout").on('click', function(e) {
var firebaseRef = new Firebase("https://" + baseURL);
var auth = new FirebaseSimpleLogin(firebaseRef, function(error, user) {
if (error | user === null)
window.location = "index.html";
else
auth.logout();
});
});
origin - http://www.pipiscrew.com/?p=650 firebase-logout-user