Created
August 28, 2018 13:01
-
-
Save hurlatunde/3ec004a85f84cc9580c21e368a29d871 to your computer and use it in GitHub Desktop.
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
//Firebase Auth instance | |
const auth = firebase.auth(); | |
const email = fornData.email_address; | |
const password = fornData.password; | |
const promise = auth.signInWithEmailAndPassword(email, password); | |
promise.then(function (user) { | |
// get the current loggeg in users details | |
console.log(user); | |
}) | |
promise.catch(function(error) { | |
// Handle Errors here. | |
var errorCode = error.code; | |
var errorMessage = error.message; | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment