Skip to content

Instantly share code, notes, and snippets.

Created Jul 18, 2021
What would you like to do?
fun signInUser(email:String, password:String){
auth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(this) { task ->
if (task.isSuccessful) {
// Sign in success, update UI with the signed-in user's information
val user = auth.currentUser
} else {
// If sign in fails, display a message to the user.
Toast.makeText(baseContext, "Authentication failed.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment