Created
May 9, 2015 20:24
-
-
Save pankajpatel/5f6387ae6516fe3b1c77 to your computer and use it in GitHub Desktop.
Authenticate a user with email and password on FirebaseDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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