Skip to content

Instantly share code, notes, and snippets.

@e-lin
Created June 26, 2019 10:26
Show Gist options
  • Save e-lin/f7f52a816d687a45566cfbaf173c0b68 to your computer and use it in GitHub Desktop.
Save e-lin/f7f52a816d687a45566cfbaf173c0b68 to your computer and use it in GitHub Desktop.
App login with FirebaseUI - handle sign in results
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == RC_SIGN_IN) {
val response = IdpResponse.fromResultIntent(data)
if (resultCode == Activity.RESULT_OK) {
// handle login
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment