I am using TwitterKit to log in users to the app. I am using a custom button in a fragment and TwitterAuthClient to authorize users. The login happy flow is working as expected.
However, when I cancel the authorization and try to log in again by clicking on the login button, I get the following error:
com.twitter.sdk.android.core.TwitterAuthException: Authorize failed.
I have tried clearing the active session and logging out before trying to login for the second time after canceling, but it didn't solve the issue.
Twitter.getSessionManager().clearActiveSession();
Twitter.logOut();
Any help would be appreciated!