GithubHelp home page GithubHelp logo

endless loop about social-login HOT 5 CLOSED

Rainer-Lang avatar Rainer-Lang commented on June 19, 2024
endless loop

from social-login.

Comments (5)

JhonatasMartins avatar JhonatasMartins commented on June 19, 2024

I fixed it, I just remove the googleApiClient.connect() from onActivityResult(), and fixed google plus revoke access too

from social-login.

Rainer-Lang avatar Rainer-Lang commented on June 19, 2024

And all works, if the resolution appears and I accept it?

from social-login.

Rainer-Lang avatar Rainer-Lang commented on June 19, 2024

I use as workaround this: "RESULT_OK"

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if ( resultCode == RESULT_OK && requestCode == GoogleAuth.GOOGLE_SIGN_IN ) {
            googleAuth.login();
        }
        else if ( requestCode == FacebookAuth.FACEBOOK_SIGN_IN ) {
            facebookAuth.getFacebookCallbackManager().onActivityResult(requestCode, resultCode, data);
        }
    }

from social-login.

JhonatasMartins avatar JhonatasMartins commented on June 19, 2024

I did some tests and it seems works normally

from social-login.

Rainer-Lang avatar Rainer-Lang commented on June 19, 2024

Ok, thanks. I will use your code.

from social-login.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.