{"action":"created","issue":{"url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/4","labels_url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/4/comments","events_url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/4/events","html_url":"https://github.com/stevenroose/dart-reddit/issues/4","id":102238717,"number":4,"title":"Support refreshing oauth2 token","user":{"login":"Tomen","id":317186,"avatar_url":"https://avatars.githubusercontent.com/u/317186?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomen","html_url":"https://github.com/Tomen","followers_url":"https://api.github.com/users/Tomen/followers","following_url":"https://api.github.com/users/Tomen/following{/other_user}","gists_url":"https://api.github.com/users/Tomen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomen/subscriptions","organizations_url":"https://api.github.com/users/Tomen/orgs","repos_url":"https://api.github.com/users/Tomen/repos","events_url":"https://api.github.com/users/Tomen/events{/privacy}","received_events_url":"https://api.github.com/users/Tomen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-20T21:13:30Z","updated_at":"2015-08-25T20:05:01Z","closed_at":null,"body":"https://github.com/reddit/reddit/wiki/OAuth2#refreshing-the-token states that the token hast to be refreshed every hour by adding duration=permanent to the authorization request. I suppose this just has to be added here: https://github.com/stevenroose/dart-reddit/blob/master/lib/src/reddit.dart#L135-L138"},"comment":{"url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/comments/134721968","html_url":"https://github.com/stevenroose/dart-reddit/issues/4#issuecomment-134721968","issue_url":"https://api.github.com/repos/stevenroose/dart-reddit/issues/4","id":134721968,"user":{"login":"Tomen","id":317186,"avatar_url":"https://avatars.githubusercontent.com/u/317186?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomen","html_url":"https://github.com/Tomen","followers_url":"https://api.github.com/users/Tomen/followers","following_url":"https://api.github.com/users/Tomen/following{/other_user}","gists_url":"https://api.github.com/users/Tomen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomen/subscriptions","organizations_url":"https://api.github.com/users/Tomen/orgs","repos_url":"https://api.github.com/users/Tomen/repos","events_url":"https://api.github.com/users/Tomen/events{/privacy}","received_events_url":"https://api.github.com/users/Tomen/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T20:05:01Z","updated_at":"2015-08-25T20:05:01Z","body":"Hey, awesome! I will look at it in the next few days and come back to you. Kind regards!"}}