Created
June 26, 2019 10:23
-
-
Save e-lin/d8a15acb613b749f39c9df73987cfa21 to your computer and use it in GitHub Desktop.
App login with FirebaseUI - launch UI flow
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
findViewById<Button>(R.id.btn_sign_in).setOnClickListener { | |
startActivityForResult( | |
AuthUI.getInstance() | |
.createSignInIntentBuilder() | |
.setAvailableProviders(listOf(AuthUI.IdpConfig.GoogleBuilder().build())) | |
.build(), | |
RC_SIGN_IN | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment