Created
January 31, 2021 17:48
-
-
Save wajahatkarim3/785774184ed8d8242766653cc169f0f2 to your computer and use it in GitHub Desktop.
Firebase Authentication
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
var auth = FirebaseAuth.getInstance() | |
auth.createUserWithEmailAndPassword(bi.txtEmail.text.toString(), bi.txtPassword.text.toString()) | |
.addOnCompleteListener { task -> | |
if (task.isSuccessful) { | |
var firebaseUser = auth.currentUser | |
// CometChat Auth will be here. | |
} else { | |
Snackbar.make(bi.root, "Authentication failed!", Snackbar.LENGTH_SHORT).show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment