and-nd-firebase icon indicating copy to clipboard operation
and-nd-firebase copied to clipboard

AUTH error new

Open masoomdax opened this issue 6 years ago • 1 comments

       List<AuthUI.IdpConfig> providers = Arrays.asList(
        new AuthUI.IdpConfig.EmailBuilder().build(),
        new AuthUI.IdpConfig.GoogleBuilder().build());


                //user is signed out
                startActivityForResult(
                        AuthUI.getInstance()
                                .createSignInIntentBuilder()
                                .setIsSmartLockEnabled(false)
                                .setAvailableProviders(providers)
                                .build(),
                        RC_SIGN_IN);

masoomdax avatar May 09 '19 15:05 masoomdax

update to the latest version f firebaseUI v 5.0.0 and use this

        AuthUI.getInstance()
                .createSignInIntentBuilder()
                .setAvailableProviders(Arrays.asList(
                        new AuthUI.IdpConfig.GoogleBuilder().build(),
                        new AuthUI.IdpConfig.FacebookBuilder().build(),
                        new AuthUI.IdpConfig.TwitterBuilder().build(),
                        new AuthUI.IdpConfig.EmailBuilder().build(),
                        new AuthUI.IdpConfig.PhoneBuilder().build(),
                        new AuthUI.IdpConfig.AnonymousBuilder().build()))
                .build(),
        RC_SIGN_IN);```

read more about it( [here](https://github.com/firebase/FirebaseUI-Android/tree/master/auth))

ggichure avatar Aug 06 '19 19:08 ggichure