redd icon indicating copy to clipboard operation
redd copied to clipboard

Token not refreshing

Open dillionverma opened this issue 6 years ago • 0 comments

I have a web app and I have the following initializer

Reddit = Redd.it(user_agent: 'Reddit Client', client_id: ENV['reddit_client_id'],
                 secret: ENV['reddit_secret_key'])

I then proceed to use Reddit throughout my app whenever I need to access the API. However, after the hour passes, the access_token does not automatically refresh.

How do I make only 1 app-wide variable which also stores Reddit session and can also refresh token?

dillionverma avatar Mar 15 '19 02:03 dillionverma