Firebase Auth with Twitter. Error after login. – Android-Hilfe.de

OAuthProvider.Builder provider = OAuthProvider.newBuilder("twitter.com");
    FirebaseAuth.getInstance()
            .startActivityForSignInWithProvider(/* activity= */ this, provider.build())
            .addOnSuccessListener(
                    new OnSuccessListener<AuthResult>() {
                        @Override
                        public void onSuccess(AuthResult authResult) {
                            // Get id token for backend.
                            authResult.getUser().getIdToken(true).addOnSuccessListener(new OnSuccessListener<GetTokenResult>() {
                                @Override
                                public void onSuccess(GetTokenResult getTokenResult) {

                                }
                            });
                        }
                    })
            .addOnFailureListener(
                    new OnFailureListener() {
                        @Override
                        public void onFailure(@NonNull Exception e) {
                            // Handle failure.
                            e.printStackTrace();
                            Toast.makeText(MainActivity.this, R.string.loginFailed, Toast.LENGTH_LONG).show();
                        }
                    });

See also  KPN releases Smart TV app for Android TV - Image and sound - News