I use TwitterKit to log users into the app. I use the custom button in the snippet and TwitterAuthClient to authorize users. A happy input stream works as expected.
However, when I cancel authorization and try to log in again by pressing the login button, I get the following error:
com.twitter.sdk.android.core.TwitterAuthException: Authorize failed.
I tried to clear the active session and log out before trying to log in a second time after canceling, but this did not solve the problem.
Twitter.getSessionManager().clearActiveSession(); Twitter.logOut();
Any help would be appreciated!
source share