Skip to content

Instantly share code, notes, and snippets.

@ronnieotieno
Created August 5, 2019 16:49
Show Gist options
  • Save ronnieotieno/4700d68971344c74cc27586998c87882 to your computer and use it in GitHub Desktop.
Save ronnieotieno/4700d68971344c74cc27586998c87882 to your computer and use it in GitHub Desktop.
private void signIn() {
List<AuthUI.IdpConfig> providers = Arrays.asList(
new AuthUI.IdpConfig.EmailBuilder().build(),
new AuthUI.IdpConfig.GoogleBuilder().build());
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setAvailableProviders(providers)
.setTheme(R.style.AppTheme
.setIsSmartLockEnabled(false)
.build(),
RC_SIGN_IN);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment