{"action":"created","issue":{"url":"https://api.github.com/repos/p2/OAuth2/issues/18","labels_url":"https://api.github.com/repos/p2/OAuth2/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/p2/OAuth2/issues/18/comments","events_url":"https://api.github.com/repos/p2/OAuth2/issues/18/events","html_url":"https://github.com/p2/OAuth2/issues/18","id":69083593,"number":18,"title":"Renew access token from refresh token","user":{"login":"jonas-andersson-stratsys","id":11611462,"avatar_url":"https://avatars.githubusercontent.com/u/11611462?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas-andersson-stratsys","html_url":"https://github.com/jonas-andersson-stratsys","followers_url":"https://api.github.com/users/jonas-andersson-stratsys/followers","following_url":"https://api.github.com/users/jonas-andersson-stratsys/following{/other_user}","gists_url":"https://api.github.com/users/jonas-andersson-stratsys/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas-andersson-stratsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas-andersson-stratsys/subscriptions","organizations_url":"https://api.github.com/users/jonas-andersson-stratsys/orgs","repos_url":"https://api.github.com/users/jonas-andersson-stratsys/repos","events_url":"https://api.github.com/users/jonas-andersson-stratsys/events{/privacy}","received_events_url":"https://api.github.com/users/jonas-andersson-stratsys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/p2/OAuth2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/p2/OAuth2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-17T07:15:23Z","updated_at":"2015-05-14T21:06:23Z","closed_at":null,"body":"How do I most easily implement so that I do not need to log in every time? I assume the framework supports so I can use hasUnexpiredAccessToken() to first check if accesstoken is ok, then if not, try to use refresh token to get a new unexpired access token.\r\n\r\nWhat's the best way to do this?\r\n\r\nAlso do you recommend any way of storing the tokens on the device so they don't get cleared when closing the app?"},"comment":{"url":"https://api.github.com/repos/p2/OAuth2/issues/comments/102169567","html_url":"https://github.com/p2/OAuth2/issues/18#issuecomment-102169567","issue_url":"https://api.github.com/repos/p2/OAuth2/issues/18","id":102169567,"user":{"login":"p2","id":358485,"avatar_url":"https://avatars.githubusercontent.com/u/358485?v=3","gravatar_id":"","url":"https://api.github.com/users/p2","html_url":"https://github.com/p2","followers_url":"https://api.github.com/users/p2/followers","following_url":"https://api.github.com/users/p2/following{/other_user}","gists_url":"https://api.github.com/users/p2/gists{/gist_id}","starred_url":"https://api.github.com/users/p2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p2/subscriptions","organizations_url":"https://api.github.com/users/p2/orgs","repos_url":"https://api.github.com/users/p2/repos","events_url":"https://api.github.com/users/p2/events{/privacy}","received_events_url":"https://api.github.com/users/p2/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T21:06:23Z","updated_at":"2015-05-14T21:06:23Z","body":"Need to do some more testing, I hope to get to it soon. :)"}}