Skip to content

Instantly share code, notes, and snippets.

@pankajpatel
Created May 9, 2015 20:24
Show Gist options
  • Save pankajpatel/5f6387ae6516fe3b1c77 to your computer and use it in GitHub Desktop.
Save pankajpatel/5f6387ae6516fe3b1c77 to your computer and use it in GitHub Desktop.
Authenticate a user with email and password on FirebaseDB
dbRef.authWithPassword({
email : $('#loginEmail').val(),
password : $('#loginPassword').val()
}, function(error, authData) {
if (error) {
console.log("Login Failed!", error);
} else {
console.log("Authenticated successfully with payload:", authData);
auth = authData;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment