Twitter does not itself set an expiration date/time for the access_token.
However, twitter-auth seems to set it at 10 days default.
describe '.from_remember_token' do
before do
@user = Factory(:twitter_oauth_user, :remember_token => 'abcdef', :remember_token_expires_at => (Time.now + 10.days))
end
If my app requires users to store their access_token and get there statuses regularly, how do I do that?
Twitter does not itself set an expiration date/time for the access_token. However, twitter-auth seems to set it at 10 days default.
describe '.from_remember_token' do before do @user = Factory(:twitter_oauth_user, :remember_token => 'abcdef', :remember_token_expires_at => (Time.now + 10.days)) end
If my app requires users to store their access_token and get there statuses regularly, how do I do that?