pebblecode / tricklrapp.com

Trickle out tweets over time
http://tricklrapp.com
0 stars 0 forks source link

Refresh oauth tokens #85

Closed taktran closed 11 years ago

taktran commented 12 years ago

From #84, oauth tokens can expire, making SendTweet not work.

Should detect the error Twitter::Error::Unauthorized: Could not authenticate with OAuth., fix it up. Possibly remove authentication, and require user to login again.

taktran commented 11 years ago

Another example of #84 and reason for this ticket...

For account: https://twitter.com/pro_defensa account (user id: 1870)

Get this error in resque

resque error

Can't find anything wrong in the db.

Attempted to fix by removing the authentication row, but upon trying this on a test account - when the user logs in again it creates a new user and associated data. So this won't work, as the user would lose all their tweets in the queue and settings. Need to fix this properly. Need to dig into why Twitter is responding like that too.

taktran commented 11 years ago

Also tried revoking access to tricklr from twitter, but the app is allowed access again upon login without updating the authentication tokens. The authentication token seems to only be used when the queued tweet is sent (which is where the problem is) ie, login does not update the token.