Created
November 20, 2017 13:50
-
-
Save benhaxe/d466af4490563158cc9ed10aec178bec to your computer and use it in GitHub Desktop.
How to authenticate users using fire base authentication
This file contains hidden or 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
FirebaseAuth authUser = FirebaseAuth.getInstance(); | |
authUser.signInWithEmailAndPassword(userEmail, userPassword).addOnCompleteListener(new OnCompleteListener() { | |
@Override | |
public void onComplete(Task task) { | |
if (task.isSuccessful()) { | |
FirebaseUser user = task.getResult().getUser(); | |
String userEmail = user.getEmail(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment