{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/770","repository_url":"https://api.github.com/repos/mxcl/PromiseKit","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/770/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/770/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/770/events","html_url":"https://github.com/mxcl/PromiseKit/issues/770","id":296029254,"number":770,"title":"Optional promise with reload first promise","user":{"login":"freedoom1984","id":223940,"avatar_url":"https://avatars2.githubusercontent.com/u/223940?v=4","gravatar_id":"","url":"https://api.github.com/users/freedoom1984","html_url":"https://github.com/freedoom1984","followers_url":"https://api.github.com/users/freedoom1984/followers","following_url":"https://api.github.com/users/freedoom1984/following{/other_user}","gists_url":"https://api.github.com/users/freedoom1984/gists{/gist_id}","starred_url":"https://api.github.com/users/freedoom1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedoom1984/subscriptions","organizations_url":"https://api.github.com/users/freedoom1984/orgs","repos_url":"https://api.github.com/users/freedoom1984/repos","events_url":"https://api.github.com/users/freedoom1984/events{/privacy}","received_events_url":"https://api.github.com/users/freedoom1984/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-09T22:16:14Z","updated_at":"2018-02-11T17:12:13Z","closed_at":null,"author_association":"NONE","body":"HI,\r\nI read all documentation but I don't response my question with successfull.\r\nI have this scenario\r\n- I call the authenticated api point\r\n1. If the response is 200 to 299 I fullfill\r\n2. If the response is 401 I call the api for refresh the token\r\n\r\nIf i refreshed the API token I need to re-call the first api point (for recovery the needed data).\r\nCan you help me with this problem?\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/364768234","html_url":"https://github.com/mxcl/PromiseKit/issues/770#issuecomment-364768234","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/770","id":364768234,"user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars2.githubusercontent.com/u/58962?v=4","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T17:12:13Z","updated_at":"2018-02-11T17:12:13Z","author_association":"OWNER","body":"The async tasks in `refresh` immediately start executing, so no, it isn't doing what you want. You need to wrap the whole thing in a function that returns the promise just like the example code I provided."}}
{"actor":{"display_login":"mxcl"}}