Skip to content

Token not refreshing #95

@dillionverma

Description

@dillionverma

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions