Posts o[firebase] logout user
Post
Cancel

o[firebase] logout user

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

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags