udacity / and-nd-firebase

Course code repository for Firebase in a Weekend by Google: Android
https://www.udacity.com/course/firebase-in-a-weekend-by-google-android--ud0352
Apache License 2.0
299 stars 714 forks source link

AUTH error new #63

Open masoomdax opened 5 years ago

masoomdax commented 5 years ago
       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);
ggichure commented 5 years ago

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))