{"action":"closed","issue":{"url":"https://api.github.com/repos/twitter/twitter-kit-android/issues/64","repository_url":"https://api.github.com/repos/twitter/twitter-kit-android","labels_url":"https://api.github.com/repos/twitter/twitter-kit-android/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/twitter/twitter-kit-android/issues/64/comments","events_url":"https://api.github.com/repos/twitter/twitter-kit-android/issues/64/events","html_url":"https://github.com/twitter/twitter-kit-android/issues/64","id":167223015,"number":64,"title":"Authorization via twitter oauth","user":{"login":"wpbloger","id":1907348,"avatar_url":"https://avatars.githubusercontent.com/u/1907348?v=3","gravatar_id":"","url":"https://api.github.com/users/wpbloger","html_url":"https://github.com/wpbloger","followers_url":"https://api.github.com/users/wpbloger/followers","following_url":"https://api.github.com/users/wpbloger/following{/other_user}","gists_url":"https://api.github.com/users/wpbloger/gists{/gist_id}","starred_url":"https://api.github.com/users/wpbloger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpbloger/subscriptions","organizations_url":"https://api.github.com/users/wpbloger/orgs","repos_url":"https://api.github.com/users/wpbloger/repos","events_url":"https://api.github.com/users/wpbloger/events{/privacy}","received_events_url":"https://api.github.com/users/wpbloger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-24T08:18:47Z","updated_at":"2016-07-24T16:19:10Z","closed_at":"2016-07-24T16:19:10Z","body":"There is a problem with authorization via twitter in android application imported into Fabric project connected as it is written in the docks, and hung their callbacks to get a token for use on the server. And like all good, even once it worked, but given the same token that has expired, and to them I can no longer use. I tried to remove the app, it is useless all exactly the same outdated token gives me. Here is the code that I'm trying to get the token:\r\n```\r\nTwitter.getSessionManager().clearActiveSession();\r\nTwitterCore.getInstance().logIn(this, new com.twitter.sdk.android.core.Callback<TwitterSession>() {\r\n\t@Override\r\n\tpublic void success(Result<TwitterSession> twitterSessionResult) {\r\n\t\tString token = twitterSessionResult.data.getAuthToken().token;\r\n\t\tif (token != null) {\r\n\t\t\tauthService(token, \"twitter\");\r\n\t\t} else {\r\n\t\t\tToast.makeText(LoginActivity.this,\r\n\t\t\t\t\t\"Не удалось установить соеденения с Twitter\", Toast.LENGTH_LONG).show();\r\n\t\t}\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void failure(TwitterException e) {\r\n\t\tToast.makeText(LoginActivity.this,\r\n\t\t\t\t\"Не удалось установить соеденения с Twitter\", Toast.LENGTH_LONG).show();\r\n\t}\r\n});\r\n```\r\n\r\nFor information on the token I get using:\r\n`https://api.twitter.com/oauth/authorize?oauth_token=token`\r\nHow can I fix it to always return a new token?"}}
{"actor":{"display_login":"wpbloger"}}